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
#!/usr/bin/env ruby | |
require 'sinatra' | |
warn Process.pid | |
get '/' do | |
'hi' | |
end |
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
/* Generated by Opal 0.10.0.dev, indentation fixed manually */ | |
/* source: a = true ? 2 : 0 rescue 10 */ | |
(function(Opal) { | |
Opal.dynamic_require_severity = "error"; | |
var OPAL_CONFIG = { method_missing: true, arity_check: false, freezing: true, tainting: true }; | |
var $a, self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, a = nil; | |
return a = (function() { | |
try { | |
(function() { |
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
#!/usr/bin/env ruby | |
require 'csv' | |
require 'elasticsearch' | |
require 'securerandom' | |
file = ARGV.shift | |
unless file | |
warn "Usage: $0 <ledger file>" |
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
#!/bin/bash | |
rm -rf $(pwd)/build | |
make clean | |
CFLAGS='-ggdb -g2 -gdwarf-2 -O0' ./configure --prefix=$(pwd)/build --disable-install-doc | |
make | |
make install | |
sudo ./build/bin/ruby -rsocket -e 'SIOCETHTOOL = 0x8946; i = ["lo", 10.chr].pack("a16p"); s = Socket.new(Socket::AF_INET, Socket::SOCK_DGRAM, 0); s.ioctl(SIOCETHTOOL, i); p i.unpack("a16p")[1]' |
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
10:12 <qwebirc46419> LInux mint 17.1 , cista instalacia, ruby nainstalovane pomocou rbenv, verzia ruby 2.20, verzia rails 4.2.0, vytvorim novy projekt, spustim rails server a vyhodi chybu "6: | |
warning: already initialized constant APP_PATH", skusal som rozne riesenia, aj odinstalovat niektore gem, nepomohlo, skusal som prikaz "rake rails:update:bin", tiez bez | |
vysledku, , rake aborted ,LoadError: cannot load such file -- readline /home/blacknails/Doc | |
10:13 <qwebirc46419> a dalej sa neviem pohnut | |
10:14 <qwebirc46419> este raz cely vypis po rake rails:update:bin | |
10:14 <qwebirc46419> rake aborted! LoadError: cannot load such file -- readline /home/blacknails/Documents/PROJECTS/blog/config/application.rb:7:in `<top (required)>' | |
/home/blacknails/Documents/PROJECTS/blog/Rakefile:4:in `<top (required)>' | |
10:19 <bkutil> ruby ma zavislosti na -devel knihovnach - readline, openssl - mels je nainstalovane, kdyz jsi ho kompiloval? | |
10:19 <bkutil> https://gith |
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 <SPI.h> | |
#include <avr/sleep.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
#include "printf.h" | |
RF24 radio(8, 7); | |
int led = 3; | |
int temp = A2; |
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
require 'spec_helper' | |
describe "A method stub" do | |
def decorate(klass, scope) | |
klass.class_eval <<-EOF | |
#{scope} | |
def some_stubbed_method | |
end |
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 camera, scene, renderer; | |
var geometry, material, mesh; | |
init(); | |
animate(); | |
function init() { | |
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 10000 ); | |
camera.position.z = 300; |
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
class GA | |
def self.track(type, args, cookies = nil, request = nil) | |
begin | |
self.delay(:queue => :analytics).track_send(type, args, cookies, request) | |
rescue Redis::CannotConnectError => e | |
Rails.logger.error e.message + "\n" + e.backtrace.join("\n") | |
end | |
end | |
private |
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
<?php | |
/** | |
* Simple excel writer class with no external dependencies, drop it in and have fun | |
* @author Matt Nowack | |
* @license Unlicensed | |
* @version 1.0 | |
*/ | |
class Excel { | |
private $col; |
NewerOlder