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
# this functionality relies on Moment.js 2.0.0 | |
# http://momentjs.com/docs/ | |
$scheduleSelects = $('.schedule__select') | |
$scheduleYear = $('.schedule__year') | |
$scheduleMonth = $('.schedule__month') | |
$scheduleDay = $('.schedule__day') | |
$scheduleHour = $('.schedule__hour') | |
$scheduleMinute = $('.schedule__minute') | |
$scheduleReset = $('.schedule__reset') |
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
import * as Ensure from '../../../../utils/lib/Ensure' | |
import markdownBlockDelimiter from './markdownBlockDelimiter' | |
import {BlockTypes, BlockTypeRegExps} from './Types' | |
import { | |
CharacterMetadata, | |
ContentState, | |
ContentBlock, | |
EditorState, | |
genKey, | |
} from 'draft-js' |
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
mkdir ./pngs | |
ffmpeg -i src.mov -r 10 ./pngs/out%04d.png | |
mkdir ./gifs | |
sips -s format gif .pngs/*.png --out ./gifs | |
gifsicle ./gifs/* --optimize=3 --loopcount --colors 256 --resize 375x667 > ./animation.gif |
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
module.exports = CSSMixin = | |
# | |
# Return the object containing the inline styles for `property` with | |
# vendor prefixes. Can be used with React inline styles: | |
# http://facebook.github.io/react/tips/inline-styles.html | |
# | |
getVendorPrefixedProperties: (property, value) -> | |
capitalizedProperty = "#{property.charAt(0).toUpperCase()}\ | |
#{property.slice(1)}" |
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
/** | |
* Add ipad IOS7 Classes | |
* Allows us to temporariliy try to fix the slight scroll 100% hack. | |
* http://stackoverflow.com/questions/19012135/ios-7-ipad-safari-landscape-innerheight-outerheight-layout-issue | |
*/ | |
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) { | |
$('html').addClass('ipad ios7'); | |
} | |
/** |
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
Show hidden characters
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"detect_indentation": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>CSS3 CoverFlow</title> | |
<link rel="stylesheet" href="css/coverflow.css"> |
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
# If browser doesn't support placeholders, take the placeholder text and set it as the field's value | |
unless Modernizr.input.placeholder | |
$("input[placeholder]").each (index, element)-> | |
unless $(element).val() | |
$(element).val($(element).attr("placeholder")) |
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
String.prototype.shorten = function( length ) { | |
//shorten a string while minding the possible HTML markup within | |
var original = this.toString() | |
, length = length || 500 | |
, tagRE = /<\/?\w+(\s+\w+="?[^>]*"?)*\s*>/g | |
, openTagRE = /<[^>\/]*([^\/]*>)/g | |
, closeTagRE = /<[\/]([^\/]*>)/g | |
, pipeRE = /\|/ | |
, tag = '' | |
, tags = original.match( tagRE ) |