Skip to content

Instantly share code, notes, and snippets.

function start_player_with(url){
var $player = $('#videoPlayer');
$player.player({
'params' : {
'autoPlay': false
}
}, function() {
$player.player('play', url);
});
{
"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",
<?php
echo date('Y');
?>
/**
* @module main
*/
(function () {
'use strict';
require(['config'], function () {
# 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\]"
/**
* @module Backbone
* @submodule Backbone.Model
* @class ItemModel
* @constructor
*/
var ItemModel = Backbone.Model.extend({
'defaults': {},
/**
* @module App
* @class Global
* @static
*/
var App = App || {};
_.extend(App, Backbone.Events);
/**
* @module Backbone
* @submodule Backbone.View
* @class MainView
* @constructor
*/
var MainView = Backbone.View.extend({
'events': {
/**
* @module config
*/
(function () {
'use strict';
// Use Requirejs optimizer has() integration for custom builds.
// Polyfill has() when not provided via Requirejs optimizer.
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