Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Modified from : https://github.com/timcastelijn/gcode-generator | |
feedrate= 85 # Carriage Speed | Increment by +- 5 | |
curve_tolerance=0.008 | |
curve_angle_tolerance=5 | |
z_offset = 0 | |
material_mult = 0.01 # Extrusion Speed: A-Axis | Increments of +- 0.001 | |
extruder_axis = 0 # Rotation A-Axis | |
import rhinoscriptsyntax as rs | |
import math |
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
// Step 1: Type this in your browser console | |
var script = document.createElement('script'); | |
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
// Wait for a second | |
//Step 2: Run the following | |
var elements = $(".card .face-front img"); | |
elements = elements.sort(function(a, b) { |
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
[ | |
{ | |
"LexicalDiversity": 5.088301198008541, | |
"freqDist": [ | |
{ | |
"word": "I", | |
"count": "2066" | |
}, | |
{ | |
"word": "Mr", |
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
var Promise = require('bluebird'); | |
var promiseWhile = function(condition, action) { | |
var resolver = Promise.defer(); | |
var loop = function() { | |
if (!condition()) return resolver.resolve(); | |
return Promise.cast(action()) | |
.then(loop) | |
.catch(resolver.reject); |
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
var gulp = require('gulp'); | |
var exec = require('child_process').exec; | |
var sass = require('gulp-sass'); | |
var nodemon = require('gulp-nodemon'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
gulp.task('default', ['sass', 'browser-sync'], function() { | |
gulp.watch("public/scss/*.scss", ['sass'], reload); |
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
/* | |
Warning : This is overwrite .geojson filename in the directory with same filename as .json file | |
To run the script: | |
node convertJson.js <JSON Filename without extension> | |
*/ | |
var Readable = require('stream').Readable |
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
var request = require('request-promise') | |
var AWS = require('aws-sdk') | |
var fs = require('fs') | |
var userName = 'YOUR_MAPBOX_USERNAME' | |
var accessToken = 'YOUR_MAPBOX_TOKEN' // From https://www.mapbox.com/studio/account/tokens/ | |
var credentials = null | |
/* | |
Methods: |
OlderNewer