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 sys | |
import tweepy | |
import re | |
import time | |
#for encoding to the terminal window | |
reload(sys) | |
sys.setdefaultencoding("utf-8") | |
def replace_url_to_link(value): |
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 Instagram = function () { | |
// this will be a private property | |
var clientId = ''; | |
var baseUrl = 'https://api.instagram.com/v1'; | |
// this will be a public method | |
var init = function (client_Id) { | |
clientId = client_Id; | |
} |
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 Foursquare = function () { | |
/* | |
Please register a client/app with foursquare ( https://developer.foursquare.com) | |
and put the client id and secret in the apiglobals.js | |
NOTE: Didn't want to use require for this, but it would be easy to port it | |
and have its required dependancies be Jquery and apiglobals.js | |
*/ | |
var init = function (client_id,client_secret) { |
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 ESPN = function () { | |
/* | |
DEPENDANCIES: jquery for the JSON calls & promises | |
IMPORTANT:Please register with Mashery and ESPN to get an api key (http://developer.espn.com/) | |
NOTE: Didn't want to use require for this, but it would be easy to port it | |
INITIALIZE: You need to init this class with your apikey ( ESPN.init('your-app-key-here');) | |
READ: Read the espn documentation to see what type of paramters you can pass in - didn't duplicate documentation here. | |
All calls are documented and show example usage. | |
Use at own risk! |
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 nltk | |
import epub | |
book = epub.open_epub('design-is-a-job.epub') | |
for item in book.opf.manifest.values(): | |
# read the content | |
data = book.read_item( item ) | |
if 'html' in item.href and 'chap' in item.href: | |
print item.href | |
#print data |
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
using UnityEngine; | |
using System.Collections; | |
public class SendButton : MonoBehaviour { | |
// Use this for initialization | |
SpacebrewClient sbClient; | |
// Use this for initialization |
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
using UnityEngine; | |
using System.Collections; | |
public class SpacebrewEvents : MonoBehaviour { | |
SpacebrewClient sbClient; | |
// Use this for initialization | |
void Start () { | |
GameObject go = GameObject.Find ("SpacebrewObject"); // the name of your client object |
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 spacebrew.*; | |
import processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
String server = "ws://localhost:9000"; | |
String name = "Bitchwhocodes_" + floor(random(1000)); | |
String description = "Testing Unity to Arduino"; |
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 processing.serial.*; | |
import cc.arduino.*; | |
import spacebrew.*; | |
Arduino arduino; | |
Spacebrew spacebrewConnection; // Spacebrew connection object | |
/*Future versions of the Spacebrew library will not support WS*/ |
OlderNewer