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 parallaxImages = function parallaxImages() { | |
if ($(".about.page").length && $("html.no-touchevents").length && winWidth >= 768) { | |
var triggered = false | |
, oldWindowPos = 0 | |
, fasterImgMargin = 140 | |
, slowerImgMargin = 40; | |
$(window).on("scroll", function() { | |
window.requestAnimationFrame(scrollHandler); | |
function scrollHandler() { | |
var currentWindowPos = $(window).scrollTop() |
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
div { | |
transition: 1s; | |
} | |
div:hover { | |
margin-left: 10px; | |
} |
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 braces = '{()[()]}'; | |
// var braces = '{()()]}'; | |
// var braces = '('; | |
(function matchingBraces() { | |
if (braces.length === 1) return console.log(false); | |
if (!braces) return console.log(true); | |
var leftBraces = ['{', '(', '[']; | |
var rightBraces = ['}', ')', ']']; |
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
'use strict'; | |
import React from 'react'; | |
import AbsoluteGrid from './index.js'; | |
import SampleDisplay from './demo/SampleDisplay.jsx'; | |
import * as data from './demo/sampleData.js'; | |
demo(); | |
/** |
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
bullet-microservices-beyond-basics/main (master)$ meteor | |
[[[[[ ~/Public/meteor/bullet-microservices-beyond-basics/main ]]]]] | |
=> Started proxy. | |
=> Meteor 1.2.1 is available. Update this project with 'meteor update'. | |
=> Started MongoDB. | |
I20160216-07:56:43.919(-5)? Cluster: connecting to 'mongodb' discovery backend | |
I20160216-07:56:43.920(-5)? Cluster: with options: undefined | |
W20160216-07:56:43.920(-5)? (STDERR) | |
W20160216-07:56:43.921(-5)? (STDERR) /Users/b/.meteor/packages/meteor-tool/.1.1.3.4j5cgb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:278 |
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 convert = parseInt((parseInt($('#contents > div.detail_property > div.detail_property-body > div.detailinfo > table > tbody > tr > td.detailinfo-col.detailinfo-col--01 > div > div:nth-child(1) > span > font > font').text().split(' ')[1]) * 1000) / 123.120) | |
$('#contents > div.detail_property > div.detail_property-body > div.detailinfo > table > tbody > tr > td.detailinfo-col.detailinfo-col--01 > div > div:nth-child(1) > span > font > font').text('$' + convert) |
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
Object.keys(obj).forEach(key){ | |
console.log(key) | |
} |
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 extend(obj){ | |
var args = [].slice.call(arguments, 1) | |
args.forEach(source){ | |
for (prop in source){ | |
obj[prop] = source[prop] | |
} | |
} | |
return obj | |
} |
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 obj = { | |
get foo(){ | |
return 'getter' | |
}, | |
set foo(value){ | |
return value | |
} | |
} |
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 User(name, passwordHash){ | |
if (!(this instanceof User)){ | |
return new User(name, passwordHash) | |
} | |
this.name = name | |
this.passwordHash = passwordHash | |
} | |
} |