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
function start_player_with(url){ | |
var $player = $('#videoPlayer'); | |
$player.player({ | |
'params' : { | |
'autoPlay': false | |
} | |
}, function() { | |
$player.player('play', url); | |
}); |
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
{ | |
"name": "GruntBuildApp", | |
"version": "0.0.1", | |
"dependencies": { | |
"grunt-beautify": "0.1.0", | |
"grunt-crusher": "0.1.0", | |
"grunt-jslint": "0.1.0", | |
"grunt-compass": "0.3.8", | |
"grunt-css": "0.3.2", | |
"grunt-contrib-requirejs": "0.1.0", |
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 | |
echo date('Y'); | |
?> |
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
/** | |
* @module main | |
*/ | |
(function () { | |
'use strict'; | |
require(['config'], function () { |
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
# write a function to compute the current git branch | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \(\1\)/' | |
} | |
# Colors | |
BLACK="\[\e[0;30m\]" | |
BLUE="\[\e[1;34m\]" | |
GREEN="\[\e[0;32m\]" |
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
/** | |
* @module Backbone | |
* @submodule Backbone.Model | |
* @class ItemModel | |
* @constructor | |
*/ | |
var ItemModel = Backbone.Model.extend({ | |
'defaults': {}, |
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
/** | |
* @module App | |
* @class Global | |
* @static | |
*/ | |
var App = App || {}; | |
_.extend(App, Backbone.Events); |
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
/** | |
* @module Backbone | |
* @submodule Backbone.View | |
* @class MainView | |
* @constructor | |
*/ | |
var MainView = Backbone.View.extend({ | |
'events': { |
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
/** | |
* @module config | |
*/ | |
(function () { | |
'use strict'; | |
// Use Requirejs optimizer has() integration for custom builds. | |
// Polyfill has() when not provided via Requirejs optimizer. |
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
var words = ['Jobs']; | |
$('a').each(function() { | |
var $this = $(this); | |
$.each(words, function(index, word) { | |
//log(index,word, $this.text().indexOf(word)) | |
if($this.text().indexOf(word) > -1) { | |
//match |