Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| require 'twilio-ruby' | |
| require 'httparty' | |
| require 'json' | |
| class Alerter | |
| def check | |
| # set up a client to talk to the Twilio REST API | |
| account_sid = 'xxxxxx' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| (copy something from somewhere, then do) | |
| pbpaste | gist | pbcopy |
| { | |
| "auto_complete_commit_on_tab": true, | |
| "color_scheme": "Packages/Color Scheme - Default/Tomorrow-Night-Eighties.tmTheme", | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store" | |
| ], | |
| "folder_exclude_patterns": | |
| [ | |
| "bin", |
| import sys | |
| import subprocess | |
| import tempfile | |
| import urllib | |
| text = sys.stdin.read() | |
| chart_url_template = ('http://chart.apis.google.com/chart?' | |
| 'cht=qr&chs=300x300&chl={data}&chld=H|0') | |
| chart_url = chart_url_template.format(data=urllib.quote(text)) |
| // http://viljamis.com/blog/2013/prototyping-responsive-typography/?utm_source=Responsive+Design+Weekly&utm_campaign=76e7785581-Responsive_Design_Weekly_046&utm_medium=email | |
| $browser-context: 16; // Default | |
| @function em($pixels, $context: $browser-context) { | |
| @return #{$pixels/$context}em | |
| } |
| # you can make a text file of request times (in ms, one number per line) and import it here, or you can use a probability distribution to simulate request times (see below where setting req_durations_in_ms) | |
| # rq = read.table("~/Downloads/request_times.txt", header=FALSE)$V1 | |
| # argument notes: | |
| # parallel_router_count is only relevant if router_mode is set to "intelligent" | |
| # choice_of_two, power_of_two, and unicorn_workers_per_dyno are only relevant if router_mode is set to "naive" | |
| # you can only select one of choice_of_two, power_of_two, and unicorn_workers_per_dyno | |
| run_simulation = function(router_mode = "naive", | |
| reqs_per_minute = 9000, |
| /** | |
| * This casper scipt checks for 404 internal links for a given root url. | |
| * | |
| * Usage: | |
| * | |
| * $ casperjs 404checker.js http://mysite.tld/ | |
| * $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
| */ | |
| /*global URI*/ |
| 'use strict'; | |
| /* Google Calendar API Module */ | |
| angular.module('myApp.calendar', []). | |
| value('resp', { | |
| nullMethod: function() { | |
| return 'value'; | |
| }, | |
| handleClientLoad: function() { |