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
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
notify = require('gulp-notify'), | |
nodemon = require('gulp-nodemon'), | |
clean = require('gulp-clean'), | |
livereload = require('gulp-livereload'), | |
lr = require('tiny-lr'), |
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync'); | |
gulp.task('sass', function () { | |
gulp.src('scss/index.scss') | |
.pipe(sass({includePaths: ['scss'], style: 'compact'})) | |
.pipe(prefix("last 2 versions", "> 1%", "ie 8", "Android 2", "Firefox ESR")) | |
.pipe(gulp.dest('css')); |
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
'use strict'; | |
// Include Gulp & Tools We'll Use | |
var gulp = require('gulp'); | |
var sass = require('gulp-ruby-sass'); | |
var browserSync = require('browser-sync'); | |
var localConfig = require('./config/app.json'); | |
var stylestats = require('gulp-stylestats'); | |
var projectSize = require('gulp-size'); | |
var autoprefixer = require('gulp-autoprefixer'); |
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
.ui-link { | |
transition-timing-function: ease-out; | |
transition-duration: 0.2s; } | |
.ui-link { | |
text-decoration: none; | |
transition-property: color; } |
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 bash | |
declare -a backup_files=(*.{id,nsf}, desktop8.ndk archive user.dic); | |
declare -a notes_data_directory=~/Library/Application\ Support/IBM\ Notes\ Data/; | |
declare -a notes_backup_directory=~/Desktop/Notes\ Backup; | |
mkdir -p "$notes_backup_directory"; | |
cd "$notes_data_directory"; | |
for i in "${backup_files[@]}" |
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
'use strict'; | |
var express = require('express'); | |
var app = express(); | |
var config = require('./config'); | |
// [...] | |
// [...] | |
var analytics = new Analytics(config.segment.writeKey, { flushAt: 1 }); |
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
private function returnArrayOfUniqueElements(originalArray:Array):Array { | |
var arrayOfUniqueElements:Array = new Array(); | |
var duplicateCheckerObject:Object = new Object(); | |
for (var i:uint = 0; i < originalArray.length; i++) { | |
var stringToCheckFor:String = originalArray[i]; | |
if (!duplicateCheckerObject[stringToCheckFor]) { | |
arrayOfUniqueElements.push(stringToCheckFor); | |
duplicateCheckerObject[stringToCheckFor] = true; |
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 bash | |
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin; | |
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane; | |
# sudo find /Library/Java/JavaVirtualMachines -name "jdk*" -print0 -maxdepth 1 -type d -print0|xargs -0 rm -rd --; | |
sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin; | |
sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws; |
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
$ gem thin start -R config.ru | |
/Users/kevinsuttle/.rvm/gems/ruby-1.9.3-p194/gems/rdiscount-1.6.8/lib/rdiscount.bundle: [BUG] Segmentation fault | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0] | |
-- Control frame information ----------------------------------------------- | |
c:0035 p:-17586371531316 s:0121 b:0121 l:000120 d:000120 TOP | |
c:0034 p:---- s:0119 b:0119 l:000118 d:000118 CFUNC :require | |
c:0033 p:0036 s:0115 b:0115 l:000114 d:000114 METHOD /Users/kevinsuttle/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 | |
c:0032 p:0044 s:0108 b:0108 l:000107 d:000107 TOP /Users/kevinsuttle/.rvm/gems/ruby-1.9.3-p194/gems/rdiscount-1.6.8/lib/rdiscount.rb:96 | |
c:0031 p:---- s:0106 b:0106 l:000105 d:000105 FINISH |
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://npmjs.org/install.sh | sh |
OlderNewer