Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jwarchol on github.
  • I am jwarchol (https://keybase.io/jwarchol) on keybase.
  • I have a public key whose fingerprint is 658B 5337 D02B 063D 9D23 FD91 5A46 C537 F78D CA17

To claim this, I am signing this object:

language_code name
af Afrikaans
am Amharic
ar Arabic
arq Algerian Arabic
art-x-bork Swedish Chef
as Assamese
ast Asturian
az Azerbaijani
be Belarusian
#!/usr/bin/env ruby
require 'fileutils'
require 'json'
puts "Starting"
class String
def squish
dup.squish!
end
04ACAD12D93880
0453A9620F3382
0434AA5AE13F80
04B184EA213682
04A3D7BA323182
047CD072DC3F80
045F6702DE3F80
04417A5AA13E81
042994BA323183
043ED6BA323182
@jwarchol
jwarchol / -
Created February 13, 2016 22:38
pi@doubleberry ~/tedstagram/monitor-app $ ./node_modules/.bin/ember s
/home/pi/tedstagram/monitor-app/node_modules/ember-cli-ted-bootstrap/index.js:13
let tedBootstrapPath = path.join(app.bowerDirectory, 'ted-bootstrap');
^^^
Unexpected strict mode reserved word
/home/pi/tedstagram/monitor-app/node_modules/ember-cli-ted-bootstrap/index.js:13
let tedBootstrapPath = path.join(app.bowerDirectory, 'ted-bootstrap');
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
@jwarchol
jwarchol / -
Created February 13, 2016 18:30
/main/actions/syncdatetime
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/syncdatetime
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/uilock
@jwarchol
jwarchol / README.md
Created July 28, 2012 21:06
Breathing LED on a Raspberry Pi

Raspberry Pi Breathing LED

This is a demonstration of using Ruby and the WiringPi Gem to pulse an LED connected to a GPIO pin in a manner similar to the sleep indicator on a MacBook.

A video of the effect can be found here: http://www.youtube.com/watch?v=NCUMXK7qf-c

#include <Wire.h>
#include <Adafruit_NFCShield_I2C.h>
#define IRQ (2)
#define RESET (3) // Not connected by default on the NFC Shield
Adafruit_NFCShield_I2C nfc(IRQ, RESET);
#include <SPI.h>
@jwarchol
jwarchol / gist:1052930
Created June 29, 2011 03:15
mysql2-is-weird
$ ab -c 20 -n 500 "http://localhost:9000/?id=1"
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
f = {
foo: function() {
console.log("foo");
},
bar: function() {
console.log("bar");
},
foobar: function() {
this.foo();
this.bar();