This file contains 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 tcp = require('tcp'), | |
sys = require('sys'); | |
var crlf = "\r\n"; | |
var crlf_len = crlf.length; | |
var error_replies = ['ERROR', 'NOT_FOUND', 'CLIENT_ERROR', 'SERVER_ERROR']; | |
var reply_indicators = { | |
'get' : ['VALUE', 'END'], |
This file contains 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 'rubygems' | |
require 'nokogiri' | |
require 'mechanize' | |
require 'logger' | |
module BankBalance | |
class NabFetcher | |
def fetch(client_number, password) |
This file contains 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 'flymake) | |
(defun flymake-go-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name)))) | |
(list "go" (list "build" "-o" "/dev/null" temp-file)))) |
This file contains 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 'rubygems' | |
require 'thread' | |
require 'fog' | |
# Ensure a bucket is specified | |
if ARGV.count < 4 | |
raise "Specify a key, secret, bucket and output dir (eg ./downloader.rb key secret my-bucket '~/out')" | |
return |