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
#include<iostream> | |
using namespace std; | |
struct Automobil{ | |
int ser_broj; | |
char proizvodjac[50]; | |
char model[50]; | |
int godina; | |
}; |
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
Once upon a time a goat travelled happily through a green pasture |
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
{ scopeName = 'source.ruby'; | |
comment = ' | |
TODO: unresolved issues | |
text: | |
"p << end | |
print me! | |
end" | |
symptoms: | |
not recognized as a heredoc |
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
grammar Example | |
rule reminder | |
"tell me " time "to " anything:(.+) | |
end | |
rule time | |
("at" / "on") " " word+ &"to " | |
end | |
rule word |
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/sh | |
export COLUMNS=$COLUMNS # term width isn't exported properly :( | |
export PS1='`ps1`' | |
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 | |
# | |
# Find repeated output across runs of a process. | |
# | |
# Usage: | |
# | |
# ./inspector "./minitest-runner some_failing_test" | |
# | |
# The main purpose for this is to find tests that pollute the environment making | |
# other tests fail erratically, for test suites that run in a random order. |
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
module M; end | |
class C; end | |
C.ancestors #=> [Object, Kernel] | |
C.send :include, M #=> C | |
C.ancestors #=> [M, Object, Kernel] |
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 bash | |
set -e | |
[ -n "$DEBUG" ] && set -x | |
layout="$(pwd)/.tmuxify.layout" | |
if [ ! -f "$layout" ]; then | |
echo "Can't find ./.tmuxify.layout" >&2 | |
exit 1 |
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
# this uses RspecHpricotMatchers: http://github.com/pd/rspec_hpricot_matchers | |
module FormFieldHpricotMatchers | |
# TODO: Add support for selects | |
# TODO: Test with anything that isn't an input[type=text] :P | |
class HaveField | |
include RspecHpricotMatchers | |
def initialize(id, type, tagname) | |
@tagname = tagname |
OlderNewer