⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Word count</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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(window.navigator && window.navigator.geolocation){ | |
// Execute Geolocation | |
} else { | |
// Fallback | |
} |
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 = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
browserify: { | |
libs:{ | |
files: { | |
"app/assets/javascripts/lib.js": ["app/assets/javascripts/libs/*.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
define (require)-> | |
_ = require('underscore') | |
class ReleaseDate | |
release:0 | |
current_date:0 | |
differance:0 | |
release_id:"release_date" |
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
class Lightbox | |
lightboxID:"#lightbox" | |
contentID:"#content" | |
descriptionID:"#description" | |
galleryID:"#gallery-lightbox" | |
linksClass:".lightbox-open" | |
constructor:(opt, initialize=true)-> | |
@setDefaults(opt) if _.isObject(opt) | |
@init() if initialize |
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
class Counter | |
currentdate:new Date() | |
enddate:{} | |
time:{} | |
timedif:0 | |
timer:0 | |
clck:".count" | |
dom:{ | |
days:"#days", |
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
class FeatureDetect | |
canvas:false | |
geo:false | |
transitions:false | |
touch:false | |
constructor:(reset)-> | |
if reset | |
@transitions = 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
class FeatureDetect | |
canvas:false | |
geo:false | |
transitions:false | |
touch:false | |
constructor:(reset)-> | |
if reset | |
@transitions = 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
def nice_asset(a,thumb=nil) | |
if a and a.attachment and a.attachment.url | |
if a.is_image? | |
if thumb | |
image = image_tag a.attachment.images.send(thumb).url, :alt=>a.title | |
else | |
image = image_tag a.attachment.url, :alt=>a.title | |
end | |
if a.linkable && a.linkable.url | |
link_to image, a.linkable.url |
NewerOlder