This file contains 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
require 'twitter' | |
# twitter app keys from dev.twitter.com | |
KEY = '' | |
SECRET = '' | |
TOKEN = '' | |
TOKEN_SECRET = '' | |
# Add members in batch | |
def add_list_members(list_slug, members) |
This file contains 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
$ rvm use --create 2.1@app_name | |
$ gem install rails --no-ri --no-rdoc | |
$ rails new app_name --database=postgresql | |
$ cd app_name/ | |
$ rvm --rvmrc 2.1@app_name | |
$ git init | |
$ git add . | |
# setup db | |
$ rake db:drop db:create db:migrate db:seed |
This file contains 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
# With Chrome, go to your slack team https://*.slack.com/team | |
# Open JS console | |
copy(JSON.stringify($.map($("a[title*='Email']"), function(a) {return $(a).text()}))) |
This file contains 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
$ psql -d postgres://username:password@server:port/database -t -A -F"," -c "query" > output.csv |
This file contains 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
ActionScript | |
Ada | |
Akka | |
AppleScript | |
Arc | |
Assembly | |
Boo | |
C | |
C++ | |
C# |
This file contains 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
twitterLinks = $$("a[href*='twitter.com']") | |
copy(JSON.stringify(links.map(function(x){return x.href}))) |
This file contains 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
# Install command line tools | |
# http://www.windowsazure.com/en-us/documentation/articles/command-line-tools/ | |
# setup xplat-cli (Cross Platform Command Line Interface) | |
# http://www.windowsazure.com/en-us/documentation/articles/xplat-cli/#install | |
$ azure account download | |
$ azure account import {path to .publishsettings file} | |
info: Executing command account import | |
info: Found subscription: Windows Azure MSDN - Visual Studio Professional | |
info: Setting default subscription to: Windows Azure MSDN - Visual Studio Professional |
This file contains 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 System; | |
using Newtonsoft.Json.Linq; | |
namespace JsonExperiments | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
ExecuteEmployeeSearch(); |
This file contains 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
'use strict'; | |
let terms; | |
let categories; | |
let series; | |
const highChartConverter = (function ( $ ) { | |
return { |
This file contains 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
// Look, no jQuery | |
'use strict'; | |
let terms; | |
let categories; | |
let series; | |
function populateTermsDatalist() { | |
const list = document.getElementById('datalistTerms'); |
OlderNewer