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
export const loop_raycaster = (APP) => { | |
const cameraNative = APP.camera.getNative(); | |
const raycaster = APP.raycaster; | |
const ray = APP.raycaster.ray; | |
const plane = APP.planeForRaycasting; | |
return new WHS.Loop(() => { | |
raycaster.setFromCamera( | |
new THREE.Vector2( | |
(APP.cursor.x / window.innerWidth) * 2 - 1, |
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
/* | |
* File: bst.js | |
* | |
* A pure JavaScript implementation of a binary search tree. | |
* | |
*/ | |
/* | |
* Class: BST | |
* |
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
import React from 'react'; | |
import component from 'omniscient'; | |
import immstruct from 'immstruct'; | |
import { compose, valueNode, partialProps } from './compose'; | |
const data = immstruct({ counter: 0, title: 'My title' }); | |
const em = component(({partialedTitle, children}) => | |
<em>{partialedTitle}: {children}</em>); |
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
// ==UserScript== | |
// @name Flickr Quick Comment (OK - Vispillo + NEW inculde https) | |
// @description Adds a select box with pre written comments. Derived from Steeev Group Promotion Tool | |
// @author Pierre Andrews. (code base Steeev http://steeev.f2o.org/, pt translation by Perla* <http://www.flickr.com/photos/bobnperla/>) | |
// @namespace http://6v8.gamboni.org/ | |
// @include http://*flickr.com/photos/* | |
// @include https://*flickr.com/photos/* | |
// @include http://*flickr.com/groups/*/discuss* |
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
// ==UserScript== | |
// @name Flickr Functional Suite - NEW | |
// @namespace http://www.tilford.net/ | |
// @description Adds some additional functionality to page | |
// @include http://*.flickr.com/* | |
// @include http://flickr.com/* | |
// @include https://*.flickr.com/* | |
// @include https://flickr.com/* | |
// @grant GM_getValue | |
// @grant GM_setValue |
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 R = require('./ramda'); | |
// Discussion at https://github.com/ramda/ramda/issues/1258 | |
var namedCurry = function(fn, argNames) { | |
// TODO: what if fn.length != argNames.length? | |
var f = R.curryN(fn.length, function() { | |
return fn.apply(this, arguments); | |
}); | |
f['secret-sauce'] = { |
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
window.addEventListener('DOMContentLoaded', function() { | |
//check support | |
if (!supportsWebGL()) { | |
$('webgl-canvas').innerHTML = 'Your browser doesn\'t seem to support WebGL. More info <a href=\'http://get.webgl.org/\'>here</a>.'; | |
return; | |
} | |
//get context | |
var canvas = $('webgl-canvas'), | |
gl = getWebGLContext(canvas); |
NewerOlder