A complete gdb to lldb command map.
- Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
- p - Print primitive type
A complete gdb to lldb command map.
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
sources = Dir["./*.svg"] | |
puts sources | |
sources.each do |svg| | |
pdf = "#{svg[0...-4]}.pdf" | |
%x(svg2pdf #{svg} #{pdf}) | |
end |
Full web stack No browser required PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast andnative support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.
Immutable provides Persistent Immutable List, Stack, Map, OrderedMap, Set, OrderedSet and Record. They are highly efficient on modern JavaScript VMs by using structural sharing via hash maps tries and vector tries as popularized by Clojure and Scala, minimizing the need to copy or cache data.
import requests | |
import base64 | |
from datetime import datetime | |
import json | |
f = open('output.mp3') | |
recording = base64.b64encode(f.read()) | |
current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
payload = {'audio_clip': {'device':'0005', 'time':current_time, 'recording':{'filename':'output.mp3', 'content_type':'audio/mp3', 'content':recording}}} |
import websocket | |
import thread | |
import time | |
import json | |
def on_message(ws, message): | |
print "recieved: " + message | |
response = json.loads(message)[0] | |
event = response[0] | |
print "event: " + event |
require 'date' | |
require 'openssl' | |
require 'rest-client' | |
require 'json' | |
def auth_token(secret, project, ai, tm) | |
message = ("POST\n/auth/token\nproject=" + project + "&ai=" + ai + "&tm=" + tm).encode("utf-8") | |
digest = OpenSSL::Digest.new('sha256') | |
OpenSSL::HMAC.hexdigest(digest, secret.encode("utf-8"), message) | |
end |
#!/bin/bash | |
for file in $( find . -name \*.m|grep -v lib ); do | |
echo "$file" | |
cat $file | |
echo "\n" | |
done | |
for file in $( find . -name \*.h|grep -v lib ); do | |
echo "$file" | |
cat $file |
I hereby claim:
To claim this, I am signing this object: