(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| * Description: | |
| * removes white space from text. useful for html values that cannot have spaces | |
| * Usage: | |
| * {{some_text | nospace}} | |
| */ | |
| app.filter('nospace', function () { | |
| return function (value) { | |
| return (!value) ? '' : value.replace(/ /g, ''); |
| #!/bin/sh | |
| # find and unmount volume (change 'BOOTCAMP' name accordingly) | |
| amount=`diskutil list | grep BOOTCAMP | wc -l` | |
| if [ $amount = 1 ] | |
| then | |
| path=`diskutil list | grep BOOTCAMP | sed -e 's/^\(.*\)\(disk0s.\)$/\/dev\/\2/g'` | |
| sudo chmod 777 $path | |
| diskutil unmount $path | |
| fi |
| void setup() { | |
| size(500, 500); | |
| rectMode(CENTER); | |
| noStroke(); | |
| } | |
| float x, y, t, tt; | |
| color c1 = color(32), c2 = color(240, 0, 0), cb = color(245); | |
| int N = 10; | |
| float spm = 60, sp, l1 = spm/2, l2 = spm/4; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| var outline_shader = { | |
| uniforms: { | |
| "linewidth": { type: "f", value: 0.3 }, | |
| }, | |
| vertex_shader: [ | |
| "uniform float linewidth;", | |
| "void main() {", | |
| "vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );", | |
| "vec4 displacement = vec4( normalize( normalMatrix * normal ) * linewidth, 0.0 ) + mvPosition;", | |
| "gl_Position = projectionMatrix * displacement;", |
$ npm install
$ ./node_modules/.bin/webpack-dev-server
$ open http://localhost:8080/webpack-dev-server/Notes:
http://localhost:8080/webpack-dev-server/index.html.http://localhost:8080/index.html.| var images = [ | |
| '<img src="img/starbucks.png">', | |
| '<img src="img/google.png">' | |
| ]; | |
| var flash = function(id, image) { | |
| var target = document.getElementById(id); | |
| var goodHTML = target.innerHTML; | |
| target.innerHTML = image; |
| function countPieces() { | |
| it = b.pieces(); | |
| var i = 0; | |
| while (it.current()){ i++; it.next() } | |
| return i; | |
| } | |
| function getRandPiece() { | |
| var it = b.pieces(); |
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| using System.IO; | |
| public class SDKSwap : EditorWindow { | |
| static string _cardboardPath; | |
| static string _OVRPath; |
| hader "Unlit/GridOverlay" | |
| { | |
| Properties | |
| { | |
| _GridSize("Grid Size", Float) = 10 | |
| _Grid2Size("Grid 2 Size", Float) = 160 | |
| _Grid3Size("Grid 3 Size", Float) = 320 | |
| _Alpha ("Alpha", Range(0,1)) = 1 | |
| } | |
| SubShader |