This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'digest' | |
url = 'https://api.pwnedpasswords.com/range' | |
input = ARGV[0] ? ARGV : ARGF.read.split | |
input.each do |pw| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-09-14T18:15:52.424Z","extensionVersion":"v3.1.2"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var StringReplacePlugin = require("string-replace-webpack-plugin"); | |
module.exports = { | |
output: { | |
filename: 'build/static/app/[name]' | |
}, | |
entry: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Math.floor(moment.duration(expectedLogoutTime - +(new Date())).asSeconds()) <= 0) { | |
logger.info('timeout service - openDialog called but past logout time'); | |
sessionStoreService.ensureSessionIsValid(); | |
return $q.reject(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (dateHasPassed(expectedLogoutDate)) { | |
logger.info('timeout service - openDialog called but past logout time'); | |
sessionStoreService.ensureSessionIsValid(); | |
return $q.reject(); | |
} | |
function dateHasPassed(date) { | |
return moment().isAfter(moment(date)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Suppress persistent highlighting of searched terms" | |
set nohlsearch | |
set nocompatible | |
set backspace=indent,eol,start | |
set ruler | |
let mapleader = "," | |
set tabstop=2 shiftwidth=2 expandtab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is how I got AngularJS 1.1.x and Cordova working together | |
# | |
sudo npm install -g grunt cordova | |
cordova create angular-app | |
cd angular-app | |
cordova platform add android # create android files | |
cordova ripple android # see the hello world phonegap application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# See http://stackoverflow.com/questions/16989935/ruby-concat-strings-with-utf-8-characters-results-in-strange-ordering | |
arabic = "أَبْجَدِيَّة عَ" | |
puts "A #{arabic} end " + " Goodbye " #This is OK because it starts with A | |
puts "#{arabic} end " + " Goodbye " #" end" is displayed first :( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Specify a "Value" resort to get prices for, or "any" to find the cheapest | |
resort: Pop Century | |
#resort: any | |
#Specify dates to search for. Format: MM/DD/YYYY | |
dates: | |
- arrival: 11/29/2011 | |
departure: 12/03/2011 | |
- arrival: 11/30/2011 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="status"></div> | |
<br /> <br /> <br /> | |
<div id="msg"></div> | |
</body> | |
<script src="http://localhost:4444/socket.io/socket.io.js"></script> | |
<script> | |
var socket = io.connect('http://localhost:4444'); |
NewerOlder