Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
@jtsagata
jtsagata / 0_reuse_code.js
Created November 1, 2016 20:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#include "terrain.hpp"
TerrainEngine::TerrainEngine( Ogre::String seed, Ogre::Root *root, Ogre::SceneManager *scenemgr, Ogre::Camera *cam, Ogre::Light* light, Ogre::String file_prefix, Ogre::String file_suffix )
: mRoot(root)
, mTerrainGroup(0)
, mTerrainPos(1000,0,5000)
, mLayerEdit(1)
, mTerrainsImported(false)
, mSceneMgr(scenemgr)
# ref: http://bit.ly/fN2ep8
# http://twitpic.com/3rr8dk
def sass_colors
engine= Sass::Engine.new(File.read("app/stylesheets/_colors.scss"), :syntax => :scss, :load_paths => ["app/stylesheets"])
environment= Sass::Environment.new
visitor = Sass::Tree::Visitors::Perform.new(environment)
engine.to_tree.children.each do | node |
next unless node.kind_of? Sass::Tree::VariableNode
visitor.send(:visit, node)