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
| require 'formula' | |
| class SphinxBeta < Formula | |
| url 'http://sphinxsearch.com/files/sphinx-1.10-beta.tar.gz' | |
| homepage 'http://www.sphinxsearch.com' | |
| md5 '5b52ce9e93a73c66d37bc3a2402f14fa' | |
| head 'http://sphinxsearch.googlecode.com/svn/trunk/' | |
| def install | |
| fails_with_llvm "fails with: ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)" |
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
| require 'uri' | |
| uri = URI.parse(ARGV[0]) | |
| exec "psql 'user=#{uri.user} password=#{uri.password} host=#{uri.host} dbname=#{uri.path[1..-1]}'" |
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 onInsideBracket(string) { | |
| return '<span class="lookup">' + Ext.htmlEncode(string) + '</span>'; | |
| } | |
| function onOutsideBracket(string) { | |
| return Ext.htmlEncode(string); | |
| } | |
| function formatBrackets(string) { | |
| var out = ""; |
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
| *.sql | |
| *.sh | |
| *.swp |
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
| sudo rpm -ivh http://yum.pgrpms.org/9.0/redhat/rhel-5-i386/pgdg-redhat90-9.0-5.noarch.rpm | |
| sudo yum install postgresql90 -y |
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
| Peanutty.loadLevel() | |
| peanutty.createBall | |
| x: 203.94690265486724 | |
| y: 509.8672566371681 | |
| radius: 20 | |
| static: true | |
| peanutty.wait(440) | |
| peanutty.createBall |
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
| node_modules |
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
| :syslogtag, isequal, "heroku[nginx]" /var/log/heroku.log | |
| :inputname, isequal, "imtcp" ~ |
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
| #################################### | |
| # BASIC REQUIREMENTS | |
| # http://graphite.wikidot.com/installation | |
| # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
| # Last tested & updated 10/13/2011 | |
| #################################### | |
| sudo apt-get update | |
| sudo apt-get -y upgrade |
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
| CREATE OR REPLACE FUNCTION ci_lower_bound(integer, integer) RETURNS numeric LANGUAGE plpgsql IMMUTABLE | |
| AS $$ | |
| DECLARE | |
| up_votes ALIAS FOR $1; | |
| total_votes ALIAS FOR $2; | |
| z numeric; | |
| p_hat numeric; | |
| BEGIN | |
| IF total_votes <= 0 OR up_votes < 0 OR up_votes > total_votes THEN | |
| RETURN 0; |