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
@interface TwitterTest() | |
@property (strong, nonatomic) NSString *currentTwitterHandle; | |
@end | |
@implementation TwitterTest // Note, must conform to the <UIActionSheetDelegate> protocol | |
- (void)authenticateWithTwitter; | |
{ |
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
@interface TwitterTest() | |
@property (strong, nonatomic) NSString *currentTwitterHandle; | |
@end | |
@implementation TwitterTest // Note, must conform to the <UIActionSheetDelegate> protocol | |
- (void)authenticateWithTwitter; | |
{ |
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
#!/usr/bin/python | |
import sys, os, getopt, re, json | |
def main(argv): | |
inputpath = '' | |
outputfile = '' | |
verbose = False; | |
outputDictionary = {} | |
try: |
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
/*! Firebase-util - v0.1.2 - 2014-01-11 | |
* https://github.com/firebase/firebase-util | |
* Copyright (c) 2014 Firebase | |
* MIT LICENSE */ | |
(function(exports) { | |
/** | |
* @var {Object} a namespace to store internal utils for use by Firebase.Util methods | |
*/ |
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
.user-chat-username { | |
color:red; | |
} |
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
var Firebase = require('firebase'); | |
var fromRef = new Firebase('https://<FROM-FIREBASE>.firebaseio.com'); | |
var toRef = new Firebase('https://<TO-FIREBASE>.firebaseio.com'); | |
function main(){ | |
mirrorRef(fromRef,toRef); | |
} | |
function mirrorRef(fromReference, toReference){ |
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
<!doctype html> | |
<html> | |
<head> | |
<title>JavaScript RSA Encryption</title> | |
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script> | |
<script src="jsencrypt/bin/jsencrypt.min.js"></script> | |
<script type="text/javascript"> | |
// Call this code when the page is done loading. |
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
public class MainActivity extends Activity { | |
private ListView mListView; | |
private ArrayList<Message> mMessages; | |
private ArrayAdapter mAdapter; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); |
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
-(void)viewWillAppear:(BOOL)animated { | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardShown:) name:UIKeyboardWillShowNotification object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardHidden:) name:UIKeyboardWillHideNotification object:nil]; | |
} | |
- (void)viewWillDisappear:(BOOL)animated { | |
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil]; | |
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil]; | |
} |
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
/// | |
// AppDelegate.swift | |
// ZeroToApp | |
// | |
import UIKit | |
import Firebase | |
import FBSDKCoreKit | |
@UIApplicationMain |
OlderNewer