brew install -v https://gist.githubusercontent.com/mhayes/7cdd597343108f79c1c8/raw/230cef02df0f3642bb537d4ad200dacacb583423/tomcat7.rb
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
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
// works in libsass, not in ruby sass | |
$text-direction: ltr; | |
$text-direction: ltr !default; |
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/bash | |
# # Allow us to compile from source | |
# https://github.com/hcatlin/libsass/archive/master.zip | |
# https://github.com/hcatlin/sassc/archive/master.zip | |
TMPFILE="libsass" | |
PWD=`pwd` | |
wget "https://github.com/hcatlin/libsass/archive/master.zip" -O $TMPFILE | |
unzip -d $PWD $TMPFILE |
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 | |
mkdir -p ~/Sites/zurb-foundation | |
cd ~/Sites/zurb-foundation | |
npm install bower grunt-cli -g | |
rc=$? | |
if [[ $rc != 0 ]] ; then | |
sudo npm install bower grunt-cli -g | |
fi | |
echo "[SUCCESS] Installed bower and grunt"; |
Let's assume you have OS X screenshots named like Screen Shot 2015-06-09 at 9.39.56 AM.png
. You can use this script to rename them like so:
mark:screens mark$ ruby renamer.rb
move ./Screen Shot 2015-06-09 at 9.39.56 AM.png to EXAMPLE_ONE_160x600_1.png
move ./Screen Shot 2015-06-09 at 9.39.57 AM.png to EXAMPLE_ONE_160x600_2.png
move ./Screen Shot 2015-06-09 at 9.39.58 AM.png to EXAMPLE_ONE_160x600_3.png
move ./Screen Shot 2015-06-09 at 9.40.00 AM.png to EXAMPLE_ONE_160x600_4.png
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
class ActionItem | |
field :due_date, :type => Date | |
field :completed, :type => Boolean | |
field :description | |
has_one_related :person | |
embedded_in :meeting, :inverse_of => :action_items |
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
$(function() { | |
$(".multiselect").multiselect(); | |
$('#sortFields').sortable({ | |
update:function(event,ui) { | |
var arr = $('#sortFields').sortable('toArray'); | |
var newVal = ""; | |
for(i=1; i<arr.length; i++) { newVal += arr[i] + ","; } | |
$('#sortOrderIds').val(newVal); | |
} | |
}); |
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
<!--- | |
Database Migration Script: | |
Instructions here | |
---> | |
<cfsavecontent variable="up"> | |
<!--- The contents in this section will be used to apply your update ---> | |
CREATE VIEW [ats].[VW_R_T1] | |
AS | |
SELECT TOP 3 * FROM ats.vw_r | |
</cfsavecontent> |
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
component name="col" { | |
function init( | |
required string name, | |
required string displayName, | |
required string dataType="string", | |
required boolean canSort=false, | |
required boolean canDisplay=false | |
) { | |
variables.tbl = ""; | |
variables.name = arguments.name; |
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
#base_template.rb | |
#sets up basic rails3 application structure with jquery-ujs | |
#remove index page | |
run "rm public/index.html" | |
@jquery_link = "http://code.jquery.com/jquery-1.4.1.min.js" | |
@jquery_ujs_link = "http://github.com/rails/jquery-ujs/raw/master/src/rails.js" | |
#setup Gemfile |
OlderNewer