One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| var express = require('express') | |
| var app = express() | |
| app.listen(1337) | |
| app.all('/stream/:chunks', function (req, res, next) { | |
| res.writeHead(200, { | |
| 'Content-Type': 'text/plain', |
| var viewer = new Cesium.Viewer('cesiumContainer', { | |
| infoBox : false, | |
| selectionIndicator : false | |
| }); | |
| var entity = viewer.entities.add({ | |
| position : Cesium.Cartesian3.fromDegrees(-123, 44, 10), | |
| model : { | |
| uri : '../../../Specs/Data/Models/Box/CesiumBoxTest.gltf', | |
| minimumPixelSize : 128 |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |
| openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
| chmod 0600 id_rsa.pem |
| # open the CSV file | |
| csv_file = open(CSV_LOCATION, 'r') | |
| csv_reader = csv.reader(csv_file) | |
| values = [] | |
| for row in csv_reader: | |
| values.append(row) | |
| body = { | |
| 'values': values |