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 'formula' | |
<<-COMMENTS | |
This is the Homebrew formula for Python. | |
Versions | |
-------- | |
This formula is currently tracking version 2.6.x. |
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
# Pyrocfile - Simple Python impementation of Procfile manager | |
# Written by Chris Testa (http://testa.co/) in 2011 | |
# Released in the Public Domain | |
import argparse, logging, os.path, random, re, select, signal, subprocess | |
def _new_logger(name, color=None): | |
logger = logging.getLogger(name) | |
hdlr = logging.StreamHandler() | |
color, end_color = '\033[9%dm' % (color or random.randint(1, 6)), '\033[0m' |
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 -w | |
# brew-services(1) - Easily start and stop formulas via launchctl | |
# =============================================================== | |
# | |
# ## SYNOPSIS | |
# | |
# [<sudo>] `brew services` `list`<br> | |
# [<sudo>] `brew services` `restart` <formula><br> | |
# [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
➜ git-plugin git:(master) mvn clean package | |
[INFO] Scanning for projects... | |
[ERROR] The build could not read 1 project -> [Help 1] | |
[ERROR] | |
[ERROR] The project org.jenkinsci.plugins:git:1.1.16-SNAPSHOT (/Users/arnihermann/Packages/git-plugin/pom.xml) has 1 error | |
[ERROR] Non-resolvable parent POM: Failure to find org.jenkins-ci.plugins:plugin:pom:1.398 in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 11 -> [Help 2] | |
[ERROR] | |
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. | |
[ERROR] Re-run Maven using the -X switch to enable full debug logging. | |
[ERROR] |
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 scala.math.abs | |
def distinct(vals: List[Int]): Boolean = vals.distinct.length == vals.length | |
val floors = List(1,2,3,4,5) | |
val solution = for { | |
baker <- floors | |
cooper <- floors | |
fletcher <- floors | |
miller <- floors |
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
from django.utils.html import escape | |
from django.utils.safestring import mark_safe | |
from django.forms.util import flatatt | |
class ReadOnlyWidget(forms.Widget): | |
def render(self, name, value, attrs): | |
final_attrs = self.build_attrs(attrs, name=name) | |
if hasattr(self, 'initial'): | |
value = self.initial | |
return mark_safe("<p %s>%s</p>" % (flatatt(final_attrs), escape(value) or '')) |
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
Utterance | |
+ Clause | |
+ Theme | |
+ Subject | |
- Ég | |
+ Action | |
- sá | |
+ Rheme | |
+ Subject | |
+ Constituent (ADJECTIVE_PHRASE) |
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
Utterance | |
+ Clause | |
+ Theme | |
+ Constituent (NOUN_PHRASE) | |
- I | |
+ Constituent (VERB_PHRASE) | |
- saw | |
+ Rheme | |
+ Constituent (NOUN_PHRASE) | |
- a |
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
Utterance | |
+ Clause | |
+ Theme | |
+ Constituent (NOUN_PHRASE) | |
- I | |
+ Constituent (VERB_PHRASE) | |
- saw | |
+ Rheme | |
+ Constituent (NOUN_PHRASE) | |
- a |