Skip to content

Instantly share code, notes, and snippets.

View danopia's full-sized avatar

Daniel Lamando danopia

View GitHub Profile
$sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod
FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa
WHERE g.group_id = $group_id
AND aa.group_id = g.group_id
UNION (
SELECT g.group_moderator, g.group_type, NULL
FROM " . GROUPS_TABLE . " g
WHERE g.group_id = $group_id
AND NOT EXISTS (
SELECT aa.group_id
[18:41:10] <ttech2> afsdf
[18:41:10] <ttech2> dsj;fdj
[18:41:10] <ttech2> ;kfdas
[18:41:10] <ttech2> f;kjadsafsd;
[18:41:10] <ttech2> j;afsd
[18:41:10] <ttech2> j;adfs
[18:41:10] <ttech2> ;jfa;
[18:41:11] <ttech2> jfads
[18:41:11] <ttech2> ;jlafsd
[18:41:11] <ttech2> j;afsdj;
#!/usr/bin/perl
use Device::SerialPort;
my $port = Device::SerialPort->new("/dev/ttyUSB0");
$port->databits(8);
$port->baudrate(9600);
$port->parity("none");
$port->stopbits(1);
require "G3DRuby"
include G3D
class Mesh
def self.quad(s)
vertex = Array_Vector3.new
vertex.append(Vector3.new(-s, -s, 0), Vector3.new( s, -s, 0), Vector3.new( s, s, 0), Vector3.new(-s, s, 0))
normal = Array_Vector3.new
v = Vector3::unitZ
app/:
controllers
helpers
models
views
app/controllers:
application_controller.rb
home_controller.rb
posts_controller.rb
Mar 15 13:10:38 <sdkmvx> http://pastie.org/416946
Apr 04 22:31:56 <sdkmvx> duckinator, http://pastie.org/437248
Apr 04 23:08:32 <sdkmvx> http://pastie.org/437275
Apr 15 18:38:07 <sdkmvx> thats my code if you want to compare algorithm/see the execv answer http://pastie.org/447892
May 05 19:17:07 <sdkmvx> http://pastie.org/469330
May 16 20:31:18 <duckinator> can ya get me a list of all pastie.org links that sdkmvx sent?
Apr 09 20:27:46 <@sdkmvx> http://pastie.org/442431 <-- thats mine, but refresh isn't real on LCD...
Apr 09 20:30:12 <@duckinator> sdkmvx: http://pastie.org/442433
Apr 09 22:01:10 <@sdkmvx> http://pastie.org/442477
Apr 17 21:34:10 <@sdkmvx> http://pastie.org/450441
Apr 22 17:21:12 <@sdkmvx> buhttp://pastie.org/455101
Apr 22 17:33:08 <@sdkmvx> [17:20:46] +buhttp://pastie.org/455101
Apr 22 17:33:12 <@sdkmvx> [17:20:46] +buhttp://pastie.org/455101
Apr 23 16:11:34 <@sdkmvx> http://pastie.org/456234
Apr 25 02:26:21 <@sdkmvx> http://www.pastie.org/457862
Apr 25 02:31:00 <@sdkmvx> http://www.pastie.org/457865
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA26rztq1RMB7qELIhHekry0Bww8Ou0IF/OaU05XCV0sLimUSqc6oPkbb3GX3Ne6kT4Gq1Swz+NgUbh/gph1sEcr2L0STOWNOBmnhppbpxdsZD1n1VLs3d23NWfDTanMevYbR/5w6D4QE9i7YKZgAK27O8a9a1XiQiVfzg6hanpf//v5qqai3DNq8mbypk6VYBcfleD033tPqcc6v1Rc+4hgzQfFk8mpSEefuI1++CkyydooZa5+qHrQyGFxzbgSuZQaCeFLYkmX3Y7TSMBNVeZev0Wv+XLX2AqTMGHk8JwzGque1emnGcCrcHCcP4MBD8/dIQlT2fPb72Gf5VKdcvpw== danopia@danopia
#!/usr/bin/env ruby
require "open3"
# Puts "meep ity" on the clipboard:
# [danopia@danopia ~]$ clip meep ity
# Puts "meep ity\n" on the clipboard:
# [danopia@danopia ~]$ echo "meep ity"|clip
# Puts "meepity! lulz\n" on the clipboard: (use Ctrl-D)