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
3249,3250c3249 | |
< _eval_optlist = [['i','transaction_id', int, 1, -1, None], | |
< ['l','length', int, 1, 0, None]] | |
--- | |
> _eval_optlist = [['i','transaction_id', int, 1, -1, None]] | |
3252c3251 | |
< (tid, data_length, data,) = self._getopts(cmdargs, self._eval_optlist, "eval") | |
--- | |
> (tid, data,) = self._getopts(cmdargs, self._eval_optlist, "eval") | |
3268,3269c3267,3268 |
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
import sys | |
import socket | |
import select | |
import Queue | |
import threading | |
import time | |
class EchoServer(threading.Thread): | |
def __init__(self, host, port, message_queue, output_queue): | |
self.__message_queue = message_queue |
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
set -g history-limit 5000 | |
set-window-option -g utf8 on # utf8 support | |
# Open man page in new window | |
bind / command-prompt "split-window 'exec man %%'" | |
bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard" | |
set -g update-environment -r | |
# quick view of processes | |
bind '~' split-window "exec htop" |
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
43a44 | |
> processor.logger.debug("Adjusted stack depth: " + stackDepth.to_s) | |
88c89,93 | |
< val = eval(name, the_binding) | |
--- | |
> s_name = name.inspect | |
> if s_name[0] == ":" | |
> s_name = s_name[1..-1] | |
> end | |
> val = eval(s_name, the_binding) |
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
describe "an example spec" do | |
context "greeting" do | |
def greeting | |
"hello" | |
end | |
it "should be 'hello'" do | |
expect(greeting).to eq "hello" | |
end | |
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
<?php | |
$input = file("php://stdin"); | |
sort($input); | |
file_put_contents(end($argv), join($input)); |
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
import sys | |
import socket | |
import select | |
import Queue | |
import threading | |
import time | |
import vim | |
import os | |
class LogError(Exception): |
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
def flatten_keys(hsh, keys) | |
keys.each_with_object([]) { |k, result| | |
result += hsh[k] | |
} | |
end | |
def flatten_keys_each(hsh, keys) | |
result = [] | |
keys.each { |k| | |
result += hsh[k] |
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
#!/bin/bash | |
export XDEBUG_CONFIG="idekey=xdebug" | |
/usr/bin/php "$@" |
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 'cinch' | |
class Cinch::Plugins::WordGame | |
include Cinch::Plugin | |
match(/word start/, method: :start) | |
def start(m) | |
@word = DictionaryWord.new("/etc/dictionaries-common/words") | |
@guesses = 0 | |
m.reply "Starting a new word game. Make a guess." |
NewerOlder