Skip to content

Instantly share code, notes, and snippets.

class BasicRack
def call(env)
body = "hello from a class"
[200, {'Content-Length'=> body.size.to_s, 'Content-Type'=>'text/html'}, [body]]
end
end
run BasicRack.new
#!/usr/bin/ruby
files = {}
loop do
Dir.glob("*.haml").each do |file|
ctime = File.ctime(file).to_i
if ctime != files[file]
files[file] = ctime
p "# recompiling: #{file}"
--------------------------
4.5 Stars:
--------------------------
Amaya at The Grand Del Mar
Bistro 221
Cafe Chloe
Cosmopolitan Restaurant & Hotel
El Bizcocho
Kous Kous Moroccan Bistro
Incident Identifier: F9D18D7A-212E-4B55-88DF-B820B342C376
CrashReporter Key: 8c93f7cd7cf5ffb5c1e18f990ead3023377d6cfa
Hardware Model: iPhone3,1
Process: Bump [745]
Path: /var/mobile/Applications/9D1212F9-D119-44DC-8293-FB792CD3D8FE/Bump.app/Bump
Identifier: Bump
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
@jzting
jzting / gist:54d7e922adce1520fa18
Created May 12, 2015 01:54
batch edit shoes in strava
var editButtons = document.querySelectorAll(".quick-edit")
for (var i = 0; i < editButtons.length; i++) {
editButtons[i].click();
}
var shoeSelects = document.querySelectorAll(".shoe-id");
for (var i = 0; i < shoeSelects.length; i++) {
shoeSelects[i].value = 780973; // shoe id
}
Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
vendor.js:16 TypeError: Cannot read property 'sectionErrorKeys' of undefined
at /c/a577a0b50b0a08c49906e828142ad645/itc/js/ng-app/controllers/app/app_version_univ_cntrl.js:6200
at j (vendor.js:16)
at vendor.js:16
at k.$eval (vendor.js:17)
at k.$digest (vendor.js:17)
at k.$apply (vendor.js:17)
at f (vendor.js:16)
at r (vendor.js:16)
#!/bin/bash
bitrate="$(awk "BEGIN {print int($2 * 1024 * 1024 * 8 / $(ffprobe \
-v error \
-show_entries format=duration \
-of default=noprint_wrappers=1:nokey=1 \
"$1" \
) / 1000)}")k"
ffmpeg \
-y \
I am attesting that this GitHub handle jzting is linked to the Tezos account tz1b2W2pSQeLZBLC19o17aPLqg2tfGGQfpXL for tzprofiles
sig:edsigtjexThMccDG2YBcNirqqSGmRGtewkn754GQpgkCM4nWRscrsjf9Wj6PbsS2ovCvA4mWLx2w3GvERGtRbfFEFS3rkDu9Vb5
I am attesting that this GitHub handle jzting is linked to the Tezos account tz1b2W2pSQeLZBLC19o17aPLqg2tfGGQfpXL for tzprofiles
sig:edsigtjexThMccDG2YBcNirqqSGmRGtewkn754GQpgkCM4nWRscrsjf9Wj6PbsS2ovCvA4mWLx2w3GvERGtRbfFEFS3rkDu9Vb5