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
{"identifier":"id","label":"name","items":[{"id":223,"name":" 1527, 19th st NW, Calgary, Alberta"},{"id":188,"name":"#204 - 720 Willowbrook Rd. NW, Airdrie, Alberta"},{"id":345,"name":"#700, 540 - 5th Avenue SW, Calgary, Alberta"},{"id":368,"name":"1 Concorde Gate, Toronto, Ontario"},{"id":59,"name":"1 McDonald's Place, Toronto, Ontario"},{"id":95,"name":"1 Queen St. E, Toronto, Ontario"},{"id":48,"name":"1 Steelcase Road West, Markham, Ontario"},{"id":305,"name":"1 University Ave., Toronto, Ontario"},{"id":178,"name":"10 Park Lawn Rd., Toronto, Ontario"},{"id":293,"name":"10 Perdue Court, Caledon, Ontario"},{"id":374,"name":"100 Commerce Valley Dr E, Markham, Ontario"},{"id":180,"name":"100 Unwin Ave., Toronto, Ontario"},{"id":141,"name":"100, 229 - 33rd Street N.E., Calgary, Alberta"},{"id":94,"name":"101 Town Centre Blvd., Markham , Ontario"},{"id":148,"name":"10101 Southport Road SW, Calgary, Alberta"},{"id":67,"name":"1016A Sutton Dr., Burlington , Ontario"},{"id":207,"name":"102 Ruscica Dr. , Toronto, O |
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
<h1>Hello World!</h1> |
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
// Ever wish you could iterate JavaScript arrays like you do in Ruby? | |
// Well you can with this sweet.js macro. | |
macro do { | |
rule infix { $lh.each | _ $rh _ $body ... end} => { | |
$lh.forEach(function($rh){ | |
$($body) ... | |
}); | |
} | |
} |
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
// Inspired by http://bulkan-evcimen.com/using_sequelize_migrations_with_an_existing_database | |
var Promise = require('bluebird'); | |
var fs = Promise.promisifyAll(require('fs')); | |
module.exports = { | |
up: function(migration, DataTypes, done) { | |
var db = migration.migrator.sequelize; | |
fs.readFileAsync(__dirname + '/initial.sql', {encoding: 'utf8'}) | |
.then(function(initialSchema) { | |
var tables = initialSchema.split(';'); |
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
<!DOCTYPE html> | |
<html ng-app="test"> | |
<head> | |
<title>Performance Comparison for Knockout, Angular and React</title> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.css" rel="stylesheet" /> | |
<style type="text/css"> | |
* { box-sizing:border-box; } | |
body { padding:30px 0; } | |
h2 { margin:0; margin-bottom:25px; } | |
h3 { margin:0; padding:0; margin-bottom:12px; } |
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
echo `< /dev/urandom tr -dc [:alnum:] | head -c20`'@'`< /dev/urandom tr -dc [:alnum:] | head -c20`'.com' |
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
#!/bin/sh | |
openssl req \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout server.pem \ | |
-new \ | |
-out server.pem \ | |
-subj /CN=localhost \ |
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
/** | |
* @overview Sequelize find - dataloader advice | |
* @author Richard Ayotte | |
* @copyright Copyright © 2017 Richard Ayotte | |
* @date 2017-11-03 | |
* @license GNU GPL-3.0 | |
* @flow | |
*/ | |
'use strict' |
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
#!/bin/bash | |
#title :install-vuescan.sh | |
#description :This script will install VueScan onto a Debian system | |
#author :Richard Ayotte | |
#usage :install-vuescan.sh vuescan.tgz | |
#requirements :alien, the Industrial GTK theme and sudo access | |
#============================================================================== | |
if [ "$#" -ne 1 ]; then | |
echo "You must specify the VueScan tgz file." |
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
/** | |
* @overview Crypto helper | |
* @author Richard Ayotte | |
* @copyright Copyright © 2018 Richard Ayotte | |
* @date 2018-04-27 17:52:01 | |
* @license GNU GPL-3.0 | |
* @flow | |
*/ | |
'use strict' |
OlderNewer