This file contains hidden or 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
/** @jsx hJSX */ | |
import { run, Rx } from '@cycle/core' | |
import { makeDOMDriver, hJSX } from '@cycle/dom' | |
import switchPath from 'switch-path' | |
const routes = { | |
'/': <h1>Home</h1>, | |
'/user': <h1>User</h1> | |
} |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am secobarbital on github. | |
* I am secobarbital (https://keybase.io/secobarbital) on keybase. | |
* I have a public key whose fingerprint is A0C3 2F89 9C4A DD7B 2B2B 8A6E F57E 1B48 982A 1F46 | |
To claim this, I am signing this object: |
This file contains hidden or 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
Verifying that +secobarbital is my openname (Bitcoin username). https://onename.io/secobarbital |
This file contains hidden or 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
class BridgeCallback implements IOAcknowledge, IOCallback { | |
... | |
@Override | |
public void ack(Object... args) { | |
String argsStr = TextUtils.join(",", args); | |
final String callback = "javascript:" + mCallback + "(" + argsStr + ");"; | |
((MainActivity)mContext).runOnUiThread(new Runnable() { | |
public void run() { | |
mWebView.loadUrl(callback); |
This file contains hidden or 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
module Solr | |
class Connection | |
def post_with_response_debug(request) | |
response = post_without_response_debug(request) | |
if ENV["DEBUG"] | |
puts "-- RESPONSE -------------------" | |
puts response.class | |
puts response.inspect | |
puts "-- END RESPONSE ---------------" | |
end |
This file contains hidden or 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
/** | |
* Chickenfoot library to automate DNSMadeEasy | |
* http://groups.csail.mit.edu/uid/chickenfoot | |
* http://www.dnsmadeeasy.com | |
*/ | |
function DnsMadeEasy() {} | |
// Add a new A record from the Record Listing page | |
DnsMadeEasy.add_a = function(name, ip, ttl) { | |
click("Add A Record"); |