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
PROMPT_COMMAND='history -a' | |
PATH=/usr/local/sbin:$PATH | |
# don't put duplicate lines in the history. See bash(1) for more options | |
export HISTCONTROL=ignoredups | |
# ... and ignore same sucessive entries. | |
export HISTCONTROL=ignoreboth | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. |
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
$ = jQuery | |
$.fn.extend | |
tweetArea: (options) -> | |
settings = | |
offset: 21 | |
charDisplay: '#char-count' | |
warnAt: 120 | |
postBox: '#tweet-area' | |
max: 140 |
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
/** | |
* @license r.js 2.0.4 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. | |
* Available via the MIT or new BSD license. | |
* see: http://github.com/jrburke/requirejs for details | |
*/ | |
/* | |
* This is a bootstrap script to allow running RequireJS in the command line | |
* in either a Java/Rhino or Node environment. It is modified by the top-level | |
* dist.js file to inject other files to completely enable this file. It is |
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
post("/login") { | |
basicAuth | |
logger.debug("The user %s was successfully logged in.".format(params("userName"))) | |
} | |
error { | |
case ex => logger.error("there was an error requesting %s" format request.path, ex) | |
} | |
protected def basicAuth() = { |
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
# | |
# Configuration File for JavaScript Lint 0.3.0 | |
# Developed by Matthias Miller (http://www.JavaScriptLint.com) | |
# | |
# This configuration file can be used to lint a collection of scripts, or to enable | |
# or disable warnings for scripts that are linted via the command line. | |
# | |
### Warnings | |
# Enable or disable warnings based on requirements. |
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
#!/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 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>bundleUUID</key> | |
<string>452017E8-0065-49EF-AB9D-7849B27D9367</string> | |
<key>fileTypes</key> | |
<array> | |
<string>scala</string> | |
</array> |
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
package mojolly.io | |
import org.jboss.netty.bootstrap.ClientBootstrap | |
import org.jboss.netty.channel._ | |
import socket.nio.NioClientSocketChannelFactory | |
import java.util.concurrent.Executors | |
import org.jboss.netty.handler.codec.http._ | |
import collection.JavaConversions._ | |
import websocketx._ | |
import java.net.{InetSocketAddress, URI} |
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 chpwd() { | |
moj_root=$(pwd -P 2>/dev/null || command pwd) | |
while [ ! -e "$moj_root/.mojolly-env" ]; do | |
moj_root=${moj_root%/*} | |
if [ "$moj_root" = "" ]; then break; fi | |
done | |
if [ -r "$moj_root/.mojolly-env" ]; then source "$moj_root/mojolly-env"; fi | |
} |
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 sbt._ | |
import Keys._ | |
import java.io.PrintWriter | |
import collection.mutable | |
import scala.io.Source | |
import Project.Initialize | |
import sbt.classpath.ClasspathUtilities | |
import io.backchat.sbt._ |