This file contains 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
# This script watches for changes in a document and constantly resaves a file | |
# with the document's contents. | |
# | |
# Usage: coffee saver.coffee -d <DOCNAME> [--url http://somehost:8000/sjs] [-f filename] | |
client = require('share').client | |
fs = require('fs') | |
argv = require('optimist') | |
.usage('Usage: $0 -d docname [--url URL] [-f filename]') |
This file contains 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
<html style="width:100%; height:100%; overflow:hidden"> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.15/firebase.js'></script> | |
</head> | |
<body style="width:100%; height:100%;text-align:center; overflow:hidden; margin:0" bgcolor="#000"> | |
<img style="height:360px;display:block;" src="http://orbotix.wpengine.netdna-cdn.com/wp-content/uploads/sphero-logo-vertical-blue-reg.jpg"> | |
<script> | |
var fb = new Firebase("https://sphero.firebaseio.com/"); | |
function server() { |
This file contains 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
private Call call; | |
private class SinchCallClientListener implements CallClientListener { | |
@Override | |
public void onIncomingCall(CallClient callClient, Call incomingCall) { | |
call = incomingCall; | |
final AlertDialogPro.Builder callReceive = new AlertDialogPro.Builder(ChatActivity.this); | |
LayoutInflater factory = LayoutInflater.from(ChatActivity.this); | |
final View innerView = factory.inflate(R.layout.incoming_call, null); | |
Button accBtn = (Button) innerView.findViewById(R.id.accept_voip_call); |
This file contains 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
import javax.crypto.Cipher; | |
import java.security.spec.KeySpec; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.SecretKey; | |
import javax.crypto.spec.SecretKeySpec; | |
import javax.crypto.SecretKeyFactory; | |
import java.security.AlgorithmParameters; | |
import javax.crypto.spec.IvParameterSpec; | |
public class Decrypter { |
This file contains 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
declare module 'react-native-material-kit' { | |
import * as React from 'React'; | |
import { | |
ViewProperties, | |
ViewStyle, | |
TextStyle, | |
KeyboardType, | |
TextInputProperties, | |
TouchableWithoutFeedbackProperties | |
} from 'react-native'; |