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
| db.open("tweets.db", function(error){ | |
| if (error) { | |
| console.log("Error opening database"); | |
| throw error; | |
| } | |
| db.getTweets = function(res){ | |
| console.log("calling get tweets"); | |
| db.execute("select name,message,timestamp from tweets join names on tweets.key = names.key", function(error, rows){ | |
| if (error && error.message.search("no such table: tweets") != -1){ | |
| console.log(error);//throw error; |
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
| socket.sendData = function(message){ console.log(message.toString()); this.send(message, 0, message.length, 42424, "telehash.org"); } | |
| //socket.formatter = function(message){ new Buffer(JSON.stringify({".tap":[{"has":["+key"]}],"_line":ring, "_to":"208.68.163.247:42424"})); | |
| socket.on("message", function(data, rinfo){ | |
| console.log(data.toString()); | |
| telex = JSON.parse(data.toString()); | |
| //console.log("TELEX: " + JSON.stringify(telex)); | |
| if (telex["_ring"]){ | |
| ring = telex["_ring"]; | |
| console.log("LINE: " + ring); | |
| this.line = ring; |
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
| var tweetUsers = []; | |
| var buildString = ""; | |
| var lastID = 0; | |
| var tweetlist = []; | |
| var last_key; | |
| var time_out_id = 0; | |
| var delta = 5000; | |
| function one(user,key) { |
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
| # controller.rb | |
| # KeyBinder | |
| # | |
| # Created by messel on 2/14/11. | |
| # Copyright 2011 Victus Media. All rights reserved. | |
| class Controller < NSWindowController | |
| attr_writer :button | |
| attr_accessor :keyBindings |
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
| body { | |
| /* CSS3 Radial Gradients */ | |
| color:#666; | |
| background-image:-moz-radial-gradient(center -100px 45deg, circle farthest-corner, #999 25px, #000 450px); | |
| background-image:-webkit-gradient(radial, 50% 0, 25, 50% 0, 450, from(#999), to(#000)); | |
| color: #000000; | |
| } |
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
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Vehicle | |
| { | |
| public: | |
| Vehicle(const string& name) : name(name) {} | |
| virtual string move() = 0; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='utf-8'> | |
| <title> | |
| post | |
| </title> | |
| <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>jQuery Data Table</title> | |
| <link rel="stylesheet" type="text/css" media="all" | |
| href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-darkness/jquery-ui.css"/> | |
| <style type="text/css"> | |
| body { |
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
| #ifndef UTP_TABULAR_FUNCTION_MD | |
| #define UTP_TABULAR_FUNCTION_MD | |
| #include "UtpTabularFunction1D.h" | |
| #include "UtpFunction.h" | |
| #include "UtpArray.h" | |
| #include "UtpVector.h" | |
| #include "UtpBinaryFile.h" | |
| #include "UtpInterpolate.h" |