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
using MySql.Data.MySqlClient; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Web; | |
using Dapper; | |
namespace Gist | |
{ |
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
Array.prototype.slice.call(document.getElementsByClassName('userContentWrapper')).forEach(function(itm) { | |
if (itm.innerHTML.search(/nfl|football/i) != -1) { | |
itm.parentNode.removeChild(itm) | |
} | |
}) |
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
Object.prototype.getChainedProperty = function(str) { | |
var t = str.split('.'); | |
var value = this; | |
for(x = 0; x < t.length; x++){ | |
if(value[t[x]] === undefined){ | |
return undefined; | |
} | |
value = value[t[x]]; | |
} |
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
//The future is now! | |
global.compiler = require('htmlbars/dist/cjs/htmlbars-compiler.js'); | |
global.DOMHelper = require('htmlbars/dist/cjs/dom-helper.js'); | |
global.hooks = require('htmlbars/dist/cjs/htmlbars-runtime.js').hooks; | |
global.render = require('htmlbars/dist/cjs/htmlbars-runtime.js').render; | |
var templateSpec = compiler.compileSpec('<p>hi {{name}}</p>', {}); | |
var template = compiler.template(templateSpec); | |
var env = { dom: new DOMHelper(), hooks: hooks, helpers: {} }; |
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
http login -https |
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
--allow-file-access-from-files --enable-file-cookies --disable-web-security |
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
Measure-Command {npm run browserifyScripts} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
::Be sure 27017, 389 are forwarded inside Vagrantfile | |
::vagrant init williamyeh/ubuntu-trusty64-docker | |
vagrant up | |
vagrant ssh -- 'docker run --restart=always -d -p 27017:27017 mongo:3.0' | |
vagrant ssh -- 'docker run --restart=always -d -p 389:389 -e SLAPD_PASSWORD=mysecretpassword -e SLAPD_DOMAIN=ldap.example.org dinkel/openldap' |
OlderNewer