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
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
function hg_branch() { | |
#hg branch 2> /dev/null | awk '{ printf "\033[37;0m\033[35;40m" $1 }' | |
hg bookmarks 2> /dev/null | awk '/\*/ { printf " (" $2 ")"}' | |
} | |
PS1="$GREEN\u@\h$NO_COLOR:\w$YELLOW\$(parse_git_branch)$YELLOW\$(hg_branch)$NO_COLOR\$ " |
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
config defaultToCurrentScreen true | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
config windowHintsDuration 5 | |
bind esc:cmd hintfac | |
alias mon-laptop 1680x1050 | |
alias mon-monitor 2560x1600 |
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
import com.google.refine.expr.CellTuple; | |
import com.google.refine.expr.Evaluable; | |
import com.google.refine.jython.JythonEvaluable; | |
import com.google.refine.model.Cell; | |
import com.google.refine.model.Project; | |
import com.google.refine.model.Row; | |
import org.testng.Assert; | |
import org.testng.annotations.Test; | |
import java.util.Properties; |
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 wait_for_page_load(object): | |
def __init__(self, browser, url): | |
self.browser = browser | |
self.url = url | |
def __enter__(self): | |
self.old_page = self.browser.find_element_by_tag_name('html') | |
def page_has_loaded(self): |
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 <iostream> | |
#include "gtest/gtest.h" | |
#include "glog/logging.h" | |
#include "Change.h" | |
#include "Money.h" | |
TEST(MoneyTest, equals) { | |
EXPECT_EQ(change::Money(123, 44), change::Money(123, 44)); |
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
void _send_video_init_gstreamer(NiceAgent *magent, guint stream_id, CustomData *data) | |
{ | |
GstElement *pipeline, *source, *capsfilter, *videoconvert, *h263p, *rtph263ppay, *sink; | |
GstBus *bus; | |
GstMessage *msg; | |
GstStateChangeReturn ret; | |
GSource *bus_source; | |
source = gst_element_factory_make ("wrappercamerabinsrc", "source"); | |
capsfilter = gst_element_factory_make ("capsfilter", "capsfilter"); |
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
Non-critical error: Could not load did_you_mean | |
This application has requested the Runtime to terminate it in an unusual way. | |
Please contact the application's support team for more information. | |
terminate called after throwing an instance of 'std::system_error' | |
what(): Invalid argument | |
Failed to start server: Input/output error - TerminateProcess | |
D:/Distribs/SonicPi/SonicPiPortable/App/Sonic Pi/app/server/native/windows/ruby/lib/ruby/gems/2.1.0/gems/win32-process-0.8.3/lib/win32/process.rb:850:in `block in kill' | |
D:/Distribs/SonicPi/SonicPiPortable/App/Sonic Pi/app/server/native/windows/ruby/lib/ruby/gems/2.1.0/gems/win32-process-0.8.3/lib/win32/process.rb:797:in `each' | |
D:/Distribs/SonicPi/SonicPiPortable/App/Sonic Pi/app/server/native/windows/ruby/lib/ruby/gems/2.1.0/gems/win32-process-0.8.3/lib/win32/process.rb:797:in `kill' |
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
Sonic Pi server booting... | |
Using protocol: udp | |
Server is exiting. | |
Shutting down GUI... | |
Goodbye :-) |
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
Sonic Pi Boot Error Report | |
================== | |
System Information | |
---------------- | |
* Sonic Pi version: 2.10.0 | |
* OS: Assuming Linux |
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
ls = [50, 55, 62, 50, 55, 62, 50, 55, 62, 50, 55, 62].ring | |
counter = 0 | |
live_loop :amen_break do | |
use_bpm 80 | |
counter = (inc counter) | |
sample :loop_amen, beat_stretch: 2 | |
#play [:E3, :G3, :B3] | |
play ls[counter] | |
sleep 1 |
OlderNewer