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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter Native Session Library | |
* | |
* @package Session | |
* @subpackage Libraries | |
* @category Session | |
* @author Topic Deisgn | |
*/ |
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 | |
TODOTXT_VERBOSE=0 | |
DEFAULT_NOTES_ACTION="listnotes" | |
listnotes() { | |
TODO_LIST_NOTES="ls $TODO_NOTES_DIR | xargs -0 basename | sed -e 's/\.[a-z]\{3\}$//'" | |
if [ ! -z $TODO_NOTES_PROJECT ] | |
then | |
TODO_LIST_NOTES+=" | grep -i $TODO_NOTES_PROJECT" |
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
fs = require 'fs' | |
{exec} = require 'child_process' | |
util = require 'util' | |
appFiles = [ | |
{ | |
destination: "path/to/public/scripts/", | |
join: true | |
output: "application.js" | |
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
r(function() { | |
Backtrace = {}; | |
Backtrace.Router = (function() { | |
Router.prototype.optionalParam = /\((.*?)\)/g; | |
Router.prototype.namedParam = /:\w+/g; |
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
_sites () { | |
local client project | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if [ $prev == "sites" ] | |
then | |
COMPREPLY=( $(compgen -W "$(ls /Users/alex/Sites/)" -- $cur) ); | |
else | |
COMPREPLY=( $(compgen -W "$(ls "/Users/alex/Sites/$prev")" -- $cur)); |
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( $ ){ | |
var methods = { | |
init: function(opts){ | |
var opts = $.extend({ | |
scale: 1 | |
}, opts); | |
return this.each(function() { | |
var $this = $(this) | |
, spots = $this.children('div.hotspot') | |
, image = $this.children('img') |
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
client = ask "What's the client name for this project?" | |
job = ask "What's the job number for this project?" | |
install_devise = yes? "Do you want to use devise?" | |
install_rails_admin = yes? "Do you want to use rails_admin?" | |
gem 'rails-backbone' | |
gem 'thin' | |
gem 'capybara', group: [:test,:development] | |
gem 'rspec-rails', group: [:test,:development] | |
gem 'faker', group: [:test,:development] |
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
using terms from application "Messages" | |
on message received theMessage from theBuddy for theChat | |
tell application "Notifications Scripting" | |
-- This is required for calling the user notification event handlers. The handlers can be in a different script file. | |
set event handlers script path to (path to me) | |
-- The user info parameter is a record. The supported data types are text, integer, real, boolean, date, alias, file and POSIX file. | |
set dict to {theName:"Notifications Scripting", theVersion:"1.0", theScript:event handlers script path} | |
display notification "New Message" subtitle "From " & (theBuddy's name as string) message "" sound name "Default" user info dict |
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
require 'spec_helper' | |
describe "Scrapbooks" do | |
context 'beta user' do | |
before do | |
@user = FactoryGirl.create :user, :confirmed, roles: [:beta] | |
@resource = FactoryGirl.create :scrapbook, user: @user | |
@other_resource = FactoryGirl.create :scrapbook | |
end |
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
Ember.EasyForm.ArrayInput = Ember.View.extend | |
classNames: ["row"] | |
templateName: 'easyForm/array_input' | |
valueItems: (-> | |
@get('value').map (item) -> | |
{ value: item } | |
).property() |
OlderNewer