Skip to content

Instantly share code, notes, and snippets.

View victusfate's full-sized avatar
🚀

Mark Essel victusfate

🚀
View GitHub Profile
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;
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;
var tweetUsers = [];
var buildString = "";
var lastID = 0;
var tweetlist = [];
var last_key;
var time_out_id = 0;
var delta = 5000;
function one(user,key) {
# 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
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;
}
#include <iostream>
#include <string>
using namespace std;
class Vehicle
{
public:
Vehicle(const string& name) : name(name) {}
virtual string move() = 0;
<!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>
javascript:function iprl6(){var d=document,z=d.createElement('scr'+'ipt'),b=d.body;try{if(!b)throw(0);d.title='(Saving...) '+d.title;z.setAttribute('src','http://www.instapaper.com/j/PJpZc1t0NSTQ?u='+encodeURIComponent(d.location.href)+'&t='+(new Date().getTime()));b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}iprl6();void(0); javascript:function iprl5(){var d=document,z=d.createElement('scrip'+'t'),b=d.body,l=d.location;try{if(!b)throw(0);z.setAttribute('src',l.protocol+'//knowabout.it/j/b.js');b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}iprl5();kai_user='4c8ac091c155d70f06070000';void(0);
<!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 {
#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"