I hereby claim:
- I am typeoneerror on github.
- I am typeoneerror (https://keybase.io/typeoneerror) on keybase.
- I have a public key whose fingerprint is BFC5 50E7 C93F 53F9 F9F4 C1F9 0011 F06C CD8A 1AFE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
if (!function_exists('video_id_from_youtube_url')): | |
function video_id_from_youtube_url($source) | |
{ | |
$pattern = '/^(?:(?:(?:https?:)?\/\/)?(?:www.)?(?:youtu(?:be.com|.be))\/(?:watch\?v\=|v\/)?([\w\-]+))/is'; | |
$matches = array(); | |
preg_match($pattern, $source, $matches); | |
if (isset($matches[1])) return $matches[1]; | |
return false; | |
} |
// TODO: watch for renaming of files or adding/deleting files | |
// Requirements | |
var gulp = require('gulp') | |
, changed = require('gulp-changed') | |
, clean = require('gulp-clean') | |
, coffee = require('gulp-coffee') | |
, compass = require('gulp-compass') | |
, concat = require('gulp-concat') | |
, minifyCSS = require('gulp-minify-css') |
queryParams: ['draft'], | |
draft: null, | |
courses: function() { | |
isDraft = this.get('draft'); | |
return this.get('model').filterBy('isDraft', isDraft).sortBy('name'); | |
}.property('draft'); // courses are filtered when draft query param changes |
App.AdminAccountIndexController = Ember.Controller.extend | |
_tabIndex: 0 | |
tabIndex: (-> | |
@incrementProperty('_tabIndex') | |
@get('_tabIndex') | |
).property('_tabIndex').volatile() |
module DokiCore | |
module Concerns | |
module Sortable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Run a "single" query to update multiple records by position. | |
# | |
# The Array of passed in IDs are sorted in the order they are |
#!/bin/bash | |
# backend/run | |
echo -n -e "\033]0;Rails\007" | |
foreman start | |
echo -n -e "\033]0;\007" |
[alias] | |
st = status | |
nl = log --oneline | |
br = branch | |
co = checkout | |
ds = diff --staged | |
di = diff | |
fetchall = fetch -v --all | |
logf = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative | |
logm = log --author=USERNAME --pretty=format:'%h %cd %s' --date=short |
{ | |
/** | |
Ember CLI sends analytics information by default. The data is completely | |
anonymous, but there are times when you might want to disable this behavior. | |
Setting `disableAnalytics` to true will prevent any data from being sent. | |
*/ | |
"skipGit": true, | |
"disableAnalytics": true, | |
"liveReload": true, |