Skip to content

Instantly share code, notes, and snippets.

View cryptoquick's full-sized avatar
🦀
Any application that can be written in Rust, will eventually be written in Rust.

Hunter Beast cryptoquick

🦀
Any application that can be written in Rust, will eventually be written in Rust.
View GitHub Profile
@cryptoquick
cryptoquick / NOTES.md
Created November 28, 2015 05:48
ES6 Notes

Terminal - Files

Permissions

File System Permissions

Useful Commands

  • which
  • Will locate the executable binary that is accessible by the shell as defined in the PATH.
@cryptoquick
cryptoquick / data_types.md
Created September 12, 2015 07:19
Computer Science Lessons

Primitive Data Types

  • Boolean (true, false)
  • String ("asdf")
  • Number
    • Integer (314)
    • Floating Point (3.14)
  • Enum ({ A, B, C })

Abstract Data Types

@cryptoquick
cryptoquick / router.js
Created January 17, 2015 04:38
Meteor: Route to home when the user isn't logged in.
Router.configure({
onBeforeAction: function () {
if (!Meteor.userId()) {
var currentRoute = Router.current().route.getName()
if (currentRoute !== 'home') {
Router.go('/');
}
}
this.next();
}
@cryptoquick
cryptoquick / packages
Last active August 29, 2015 14:08
essential meteor packages
meteor-platform
coffeescript
mquandalle:jade
cryptoquick:stylus-multi
mrt:underscore-string-latest
iron:router
joshowens:accounts-entry
accounts-ui
aldeed:collection2
aldeed:autoform
@cryptoquick
cryptoquick / Colorizer.gs
Created September 29, 2014 07:06
Google Apps Spreadsheet Script for Coloring a cell based on the value it contains, if it's a hex color.
function colorize() {
var rows = SpreadsheetApp.getActiveRange();
var numRows = rows.getNumRows();
var values = rows.getValues();
for (var r = 0; r < numRows; r++) {
var row = values[r];
for (var c = 0; c < row.length; c++) {
var val = row[c];
@cryptoquick
cryptoquick / REFERENCE.md
Created September 3, 2014 02:51
A meteor development reference for many of the packages I often use.
@cryptoquick
cryptoquick / isPlural
Created September 16, 2013 19:42
simplistic isPlural function, returns true if input ends with an 's'
inflector.isPlural = function (str) {
return !!(/s$/g).exec(str);
}
@cryptoquick
cryptoquick / pentagon.svg
Last active December 17, 2015 17:38
This is a pentagon, but it could be virtually any regular polygon of any number of sides and of any chosen radius.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"color_scheme": "Packages/User/Monokai Soda.tmTheme",
"ignored_packages":
[
"Vintage"
],
"phoenix_color_blue": true,
"phoenix_color_expanded_folder": true,
"phoenix_dirty_bottom_bar_red": true,
"phoenix_highlight_current_tab": true,
@cryptoquick
cryptoquick / voxel-science.md
Last active December 11, 2015 14:08
An exchange between Max Ogden and I, in addition to a blog post I'm drafting up that is not yet published.

The following is an email I sent to Max Ogden. There was a very positive response, and he pointed me to IRC.


Hunter Trujillo:

Hi, Max! It's been a little while since I've last done a serious amount of work on my own voxel game engine, and during that time, your project sprung up! I'm very impressed, and especially impressed by Mikola Lysenko's treatments of the finer points of voxel graphics, which you seem to have integrated well into your engine.

Myself, I've been working on and off on a series of voxel game engine experiments since 2008. I've always taken the idea from a different direction than most, however; I'm not a fan of the first-person Minecraft editing experience. Instead, I'd rather edit things in the third-person, really, a more professional editor, similar to what Mr. Doob made his three.js "voxel painter" example.