Skip to content

Instantly share code, notes, and snippets.

CFLAGS=-Wall -g
all: ex19
ex19: object.o
clean:
rm -f ex19
@rocknrollMarc
rocknrollMarc / gestalt.js
Created October 10, 2013 01:02
script for our 360 foto player JS
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name gestalt-min.js
// ==/ClosureCompiler==
(function(window, document, jq, undefined) {
jq.queryParams = function( defaults ) {
var ary = window.location.search.substr(1).split('&'),
obj = {},
@mixin ie6 { * html & { @content } }
#logo {
background-image: url("/images/logo.png");
@include ie6 { background-image: url("/images/logo.gif"); }
}
" Vim functions to run RSpec and Cucumber on the current file and optionally on
" the spec/scenario under the cursor.
function! RailsScriptIfExists(name)
" Bundle exec
if isdirectory(".bundle") || (exists("b:rails_root") && isdirectory(b:rails_root . "/.bundle"))
return "bundle exec " . a:name
" System Binary
else
return a:name
"""Download stories of a Pivotal Tracker project.
You need the project ID (an int) and your API token. The latter can be
obtained in ``https://www.pivotaltracker.com/profile``, or using curl::
$ curl -u username:password -X GET https://www.pivotaltracker.com/services/v3/tokens/active
"""
import getpass
import pickle
# features/support/paths.rb
module NavigationHelpers
# Maps a name to a path. Used by the
#
# When /^I go to (.+)$/ do |page_name|
#
# step definition
#
def path_to(page_name)
case page_name
# features/support/paths.rb
module NavigationHelpers
# Maps a name to a path. Used by the
#
# When /^I go to (.+)$/ do |page_name|
#
# step definition
#
def path_to(page_name)
case page_name
(require 'term)
(defun visit-ansi-term ()
"If the current buffer is:
1) a running ansi-term named *ansi-term*, rename it.
2) a stopped ansi-term, kill it and create a new one.
3) a non ansi-term, go to an already running ansi-term
or start a new one while killing a defunt one"
(interactive)
(let ((is-term (string= "term-mode" major-mode))
(is-running (term-check-proc (buffer-name)))
module DeBouncer
def self.extened(base)
class << base
@deboucner_module = nil
end
end
def debounce(method_name, time)
if @debouncer_module
@debouncer_module.create_debouncer(method_name, time)
AllCops:
RunRailsCops: true
Excludes:
- db/**
HashSyntax:
Description: 'Use either hash rocket or 1.9 styled hashes.'
Enabled: false
LineLength: