Skip to content

Instantly share code, notes, and snippets.

View HustLion's full-sized avatar
💻
Happy coding

HustLion HustLion

💻
Happy coding
View GitHub Profile
@HustLion
HustLion / web-servers.md
Created February 16, 2017 02:10 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@HustLion
HustLion / STLFileSaver.js
Created May 9, 2016 13:45 — forked from paulkaplan/STLFileSaver.js
Create an ASCII STL file from a THREE.js mesh that can be saved save from browser and 3D printed
/*
Paul Kaplan, @ifitdidntwork
Create an ASCII STL file from a THREE.js mesh
that can be saved save from browser and 3D printed
--------------------------------------------------
See further explanation here:
http://buildaweso.me/project/2013/2/25/converting-threejs-objects-to-stl-files
--------------------------------------------------
Saving the file out of the browser is done using FileSaver.js
This file has been truncated, but you can view the full file.
{"schema_version": "3.0.0", "dependencies_cache": {"https://packagecontrol.io/repository.json": [{"load_order": "50", "description": "Backrefs regular expression wrapper.", "authors": ["facelessuser"], "releases": [{"platforms": ["*"], "url": "https://codeload.github.com/facelessuser/sublime-backrefs/zip/1.2.0", "sublime_text": ">=3000", "version": "1.2.0"}], "name": "backrefs", "issues": "https://github.com/facelessuser/sublime-backrefs/issues"}, {"load_order": "50", "description": "Python PyYAML module", "authors": ["FichteFoll"], "releases": [{"platforms": ["*"], "url": "https://codeload.github.com/packagecontrol/pyyaml/zip/v3.11.0", "sublime_text": "*", "version": "3.11.0"}], "name": "pyyaml", "issues": "https://github.com/packagecontrol/pyyaml/issues"}, {"load_order": "01", "description": "Python _multiprocessing module", "authors": ["wbond"], "releases": [{"platforms": ["windows"], "url": "https://codeload.github.com/codexns/sublime-multiprocessing/zip/1.0.0", "sublime_text": "<3000", "version": "1.0.0"
@HustLion
HustLion / generator_scss.rb
Last active August 29, 2015 14:25 — forked from parkr/generator_scss.rb
Jekyll Plugin to output SCSS without requiring the "---" YAML Front Matter
#
# Jekyll Generator for SCSS
#
# (File paths in this description relative to jekyll project root directory)
# Place this file in ./_plugins
# Place .scss files in ./_scss
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config
# Config file placed in ./_sass/config.rb
#