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
| # First: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| #go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
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'; | |
| var fs = require('fs'); | |
| var globule = require('globule'); | |
| var path = require('path'); | |
| var bowerComponents = globule | |
| .find('bower_components/**/bower.json') | |
| .map(function (fileName) { | |
| var bowerJson = fs.readFileSync(fileName); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r67/three.min.js"></script> | |
| </head> | |
| <body> | |
| <script id="mandelbrot-vertex" type="x-shader/x-vertex"> | |
| precision highp float; | |
| uniform float zoom; | |
| varying vec2 pos; |
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 java.io.FileReader; | |
| import java.io.Reader; | |
| import javax.script.Invocable; | |
| import javax.script.ScriptEngine; | |
| import javax.script.ScriptEngineManager; | |
| import javax.script.ScriptException; | |
| public class JavaScriptExecuter { | |
| public static void main(String[] args) throws FileNotFoundException, ScriptException, NoSuchMethodException { |
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
| grunt.registerTask('changelog', 'Create git changelog', function () { | |
| var exec = require('child_process').exec; | |
| var path = require('path'); | |
| var cmd; | |
| var d = new Date(); | |
| var data = grunt.file.readJSON('build.json'); | |
| var now = d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate(); // yyyy-mm-dd | |
| var since = grunt.option('since') || data.lastSince || now; | |
| var targetFile = path.normalize(__dirname + '/changelogs/changelog_since_' + since + '.txt'); |
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
| // controller proxy | |
| for (var key in this.controller) { | |
| if (this.controller.hasOwnProperty(key) && typeof this.controller[key] === 'function') { | |
| this.proxyController(model.controller[key], key); | |
| } | |
| } | |
| MvcAdapter.prototype.proxyController = function (method, key) { | |
| this.controller[key] = function () { | |
| try { |
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
| // need to npm install http-proxy | |
| require('http-proxy').createProxyServer({ | |
| port: 80, // if necessary | |
| secure: false, // disable for self-signed certs | |
| target: 'https://www.targetwebsite.com/' | |
| }).listen(9000); | |
| // boom baby, bye-bye development CORS issues! |
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
| <footer> | |
| <div class="jcarousel"> | |
| <ul> | |
| <li><img src="1_designs_tab_images/designs_1.png"></li> | |
| <li><img src="1_designs_tab_images/designs_2.png"></li> | |
| <li><img src="1_designs_tab_images/designs_3.png"></li> | |
| <li><img src="1_designs_tab_images/designs_4.png"></li> | |
| <li><img src="1_designs_tab_images/designs_5.png"></li> | |
| </ul> | |
| </div> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| @-webkit-keyframes beacon { | |
| from { clip: rect(1px, auto, auto, auto); } | |
| to { clip: rect(0px, auto, auto, auto); } | |
| } | |
| .beacon { | |
| -webkit-animation-duration: 0.001s; |
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 grid, | |
| gridSize = { columns 4, rows: 4 }; | |
| function createGrid () { | |
| var columns = gridSize.columns, | |
| rows = gridSize.rows, | |
| x, | |
| y; | |
| for (; y < rows; y++) { |