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
web: bundle exec unicorn_rails -p $PORT -c ./config/unicorn.rb | |
pg: postgres -D /usr/local/var/postgres | |
log: tail -f -n 0 log/development.log | |
guard: bundle exec guard | |
memcache: /usr/local/bin/memcached -v | |
redis: redis-server /usr/local/etc/redis.conf | |
worker: bundle exec rake resque:work |
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
.btn-custom { | |
background-color: hsl(357, 59%, 43%) !important; | |
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="hsl(357, 59%, 63%)", endColorStr="hsl(357, 59%, 43%)"); | |
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="#D8696F", endColorStr="#AE2D33"); | |
background-repeat: repeat-x; | |
} |
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
<!doctype html> | |
<html ng-app="MyApp"> | |
<script src="http://code.angularjs.org/angular-1.0.0rc7.js"></script> | |
<script type="text/javascript"> | |
var app = angular.module('MyApp', []); | |
app.factory('greeter', function($window) { | |
return { | |
greet: function(text) { | |
$window.alert(text); | |
} |
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 'rubygems' | |
require 'activeresource' | |
SITE = "https://<key goes here>@api.slicehost.com/" | |
class Slice < ActiveResource::Base | |
self.site = SITE | |
def self.find_by_name(name) | |
Slice.find(:first, :params => { :name => name }) | |
end |
This file has been truncated, but you can view the full file.
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by MySQL Server configure 5.1.58, which was | |
generated by GNU Autoconf 2.63. Invocation command line was | |
$ ./configure --without-docs --without-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/mysql51/5.1.58 --localstatedir=/usr/local/var/mysql --sysconfdir=/usr/local/etc --with-plugins=innobase,myisam --with-extra-charsets=complex --with-ssl --without-readline --enable-assembler --enable-thread-safe-client --enable-local-infile --enable-shared --with-partition | |
## --------- ## | |
## Platform. ## |
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
<?php | |
// from db | |
echo "from db\n"; | |
$db_value = 'a:1:{i:0;s:19:"heroku-sendgrid.php";}'; | |
echo $db_value; | |
echo "\n"; | |
var_dump(unserialize($db_value)); | |
echo "\n"; |
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
def new_csv_file | |
file = Tempfile.new('data.csv') | |
FasterCSV.open(file.path, "w") do |csv| | |
csv << [1,2,3,4] | |
end | |
file | |
end |
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
/** | |
* Each record captured by the form is represented as a PingAlert. | |
*/ | |
function PingAlert(rowId, record) { | |
this.rowNum = rowId + 1; | |
// See Spreadsheet for information on index. | |
this.url = record[1]; | |
this.email = record[2]; | |
// Extra 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
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 |
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
Let’s assume you’ve got an executable JAR file which launches a server listening on port 4444. | |
server:~ mchung$ java -jar server.jar | |
or | |
server:~ mchung$ java -classpath server.jar com.mchung.Server | |
Launching a Java process with debugging activated is easy when you pass in the correct arguments: | |
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 | |
For example: |