Skip to content

Instantly share code, notes, and snippets.

View hackervera's full-sized avatar
😻

Veronika Tyler hackervera

😻
View GitHub Profile
<% @statuses.each {|key, value| %>
<%= image_tag(key.to_s) %><br />
<%= value.to_s %></p>
<% } %>
// i tried using do/end, same result
def get_distance
venues = []
venues << Venue.new(:lat => 45.572952,:lon => -122.68394,:name => "my house", :vid => 6129841)
venues << Venue.new(:lat => 45.569133, :lon => -122.681568, :name => "new seasons", :vid => 42031)
venues << Venue.new(:lat => 45.429839, :lon => -122.574021, :name => "24 hour fitness clackamas", :vid => 115506)
venues << Venue.new(:vid => 89015, :name => "Fred Meyer, Arbor Lodge", :lat=> 45.577137, :lon => -122.68199)
venues << Venue.new(:vid => 39705, :name => "The Green Dragon", :lat => 45.515798, :lon => -122.656703)
venues << Venue.new(:vid => 36395, :name => "Oregon Convention Center", :lat => 45.528311, :lon => -122.663204)
var net = require('net');
var sys = require('sys');
var fs = require('fs');
var irc = require('./node-irc/lib/irc');
var re = new RegExp('^!talk (.*)');
var redis = require('./redis-node-client/lib/redis-client').createClient();
var dgram = require('dgram');
var match;
fs.readFile('./irc.config', function (err, data) {
if (err) throw err;
var crypto = require('crypto');
var fs = require('fs');
var key = fs.readFileSync("/home/tyler/keys/tyler.pem").toString();
var publicKey = fs.readFileSync("/home/tyler/keys/tyler-public.pem").toString();
var text = "hello there";
var signature = crypto.createSign('RSA-SHA256').update(text).sign(key);
var verified = crypto.createVerify('RSA-SHA256').update(text).verify(publicKey,signature);
console.log(ver);
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Trying to get property of non-object</p>
<p>Filename: libraries/Location.php</p>
<p>Line Number: 92</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: Invalid argument supplied for foreach()</p>
<p>Filename: controllers/api.php</p>
<p>Line Number: 82</p>
</div>{"response":"ok"}
require 'rubygems'
require 'sinatra'
require 'oauth2'
require 'json'
def client
OAuth2::Client.new('app_id', 'app_secret', :site => 'https://api.geoloqi.com')
end
get '/auth/loqi' do
var http = require('http');
var fs = require('fs');
var config_file = fs.readFileSync('ritalin.config','ascii');
var config = JSON.parse(config_file);
var crypto = require('crypto');
var sys = require('sys');
var spawn = require('child_process').spawn;
var url = require('url');
var Buffer = require('buffer').Buffer;
var redis = require('redis-client').createClient();
Common minimal format for sending just lat/long data
[
{
uuid: "550e8400-e29b-41d4-a716-446655440000",
date: "2010-04-30T16:50:00Z",
location: {
position: {
latitude: 45.5118,
longitude: -122.6433
}
Fúl<o·çWê¾¾æW,³Þ)ûa°­®¡¨þÜ,Y¿nOÏë@ÓgÂÏ»¿`Ú
ñöL¯AFp¹mÉ
ÒBEÆËvpÛ6¢ÓÊ@ÓöpöV açîÒ¬]´¤D9¥h#t\ò¹süÆ
YÅr Óvé´~E½$N«Ýá¿ÓëºK ü˽óÒ DSËyÙR×ã8H~ð(±ø? NRÔñC4ά'=.
F[\¨èÀ¦²Î¸¦p·<àvä!þô¶ðc6ªnòUøæVq6]_ Ö ­iÌ©! «Þb4OY}É®9Ä66KHú,½gå
F"-Hello packet &¹cçgí¯BQCUWr÷ÑMàÕöóú\«^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c