GUIStyle mystyle = new GUIStyle("some string from the list below");
- "CN Box"
- "Button"
// Run the given tasks and returns their streams | |
// This will also take care of any task dependencies | |
// | |
// This is basically a custom gulp task orchestartor. | |
// | |
// Written for this SO question: http://stackoverflow.com/q/28334314/796832 | |
// Gist: https://gist.github.com/MadLittleMods/d4083d2ba35e2f850161 | |
// | |
// Usage: | |
// gulp.task('all-txt', function() { |
import React from 'react'; | |
import SomeStore from '../stores/SomeStore'; | |
import AppActions from '../actions/AppActions'; | |
function gatherSomeStoreState(props, state) { | |
return { | |
myRandomNumber: SomeStore.getRandomNumber() | |
}; | |
} |
// Based off of geelen's gists: https://github.com/systemjs/plugin-css/issues/22#issuecomment-89491851 | |
import postcss from 'postcss'; | |
import inlineComments from 'postcss-inline-comment'; | |
import mixins from 'postcss-mixins'; | |
import nestedcss from 'postcss-nested'; | |
import cssvariables from 'postcss-css-variables'; | |
//import autoprefixer from 'autoprefixer-core'; |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Reflection; | |
using self = HandlesExtensions; | |
public class HandlesExtensions { | |
static PropertyInfo handlesHandleWireMaterial_PropertyInfo; |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Reflection; | |
using self = MLMEditorGUI; | |
using System.Collections.Generic; | |
public class MLMEditorGUI : MonoBehaviour { |
[title~="hello world"]
// tag: '<a href="foo.html">' | |
// | |
// ex. usage: `wrapWithHtmlIf('<a href="foo.html">', 'Hello World', function() { return true });` | |
// output: '<a href="foo.html">Hello World</a>' | |
var wrapWithHtmlIf = function(tag, content, testCb) { | |
if(testCb()) { | |
return tag + content + '</' + tag.match(/<(\w*?)(?:\s|\>)/)[1] + '>'; | |
} | |
return content; |
{ | |
"env": { | |
"browser": 1, | |
"es6": true, | |
"amd": true, | |
"node": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, |
let $ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(names, fn) { | |
names.split(/\s/).forEach(function(name) { | |
this.addEventListener(name, fn); | |
}.bind(this)); | |
// Keep the chaining going | |
return this; | |
}; |