Skip to content

Instantly share code, notes, and snippets.

@ironfroggy
ironfroggy / game.txt
Created May 29, 2018 13:09
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[3421,"0",6,"8",150,"0",15,"8",12,"0",18,"8",112,"0",49,"8",107,"0",55,"8",101,"0",60,"8",97,"0",64,"8",92,"0",49,"8",12,"0",8,"8",89,"0",53,"8",11,"0",8,"8",86,"0",17,"8",2,"0",37,"8",12,"0",7,"8",84,"0",14,"8",4,"0",40,"8",12,"0",6,"8",83,"0",12,"8",6,"0",12,"8",1,"0",29,"8",12,"0",6,"8",80,"0",10,"8",10,"0",10,"8",2,"0",32,"8",10,"0",7,"8",78,"0",9,"8",11,"0",8,"8",5,"0",6,"8",15,"0",14,"8",8,"0",7,"8",76,"0",8,"8",13,"0",6,"8",6,"0",6,"8",18,"0",14,"8",7,"0",6,"8",74,"0",9,"8",14,"0",5,"8",7,"0",6,"8",20,"0",14,"8",6,"0",6,"8",72,"0",9,"8",14,"0",6,"8",7,"0",5,"8",23,"0",14,"8",4,"0",7,"8",70,"0",8,"8",16,"0",6,"8",7,"0",5,"8",24,"0",24,"8",70,"0",7,"8",17,"0",5,"8",9,"0",3,"8",25,"0",24,"8",70,"0",6,"8",17,"0",6,"8",34,"0",29,"8",67,"0",6,"8",18,"0",6,"8",32,"0",32,"8",66,"0",6,"8",18,"0",5,"8",32,"0",35,"8",64,"0",5,"8",18,"0",6,"8",15,"0",9,"8",6,"0",24,"8",1,"0",14,"8",62,"0",5,"8",18,"0",6,"8",13,"0",14,"8",2,"0",17,"8",2,"0",6,"8",1,"0",15,"8",60,"0",6,"8
// CSS Lockes / Not Mobile First
fieldset
input
graduated(font-size, 14px, 16px)
graduated(line-height, 18px, 22px)
input[type=text], input[type=password]
margin-top: $line-height-base !important
margin-bottom: 0px !important
function njq(selector) {
let results
if (typeof selector === 'undefined') {
results = []
} else if (selector instanceof Element) {
results = [selector]
} else if (typeof selector === 'string') {
results = Array(...document.querySelectorAll(selector))
} else {
results = [...selector]
>>> dis.dis(foo)
2 0 BUILD_LIST 0
3 STORE_FAST 0 (a)
3 6 LOAD_FAST 0 (a)
9 LOAD_CONST 1 ('bleh')
12 INPLACE_ADD
13 STORE_FAST 0 (a)
4 16 LOAD_FAST 0 (a)
<ExpandingPanel className="lodging-search-ctn" caret={false} label="Search Filters">
<ExpandingPanelLabel>
go go gadget search filter
</ExpandingPanelLabel>
<header>
<button onClick={}>Save</button>
<span>Filter</span>
<a href="#">X</a>
</header>
...
.container {
btn(width) {
display: flex;
flex-direction: column;
width: width;
height: 50px;
../ button^[1..-1] {
display: inline-block;
}
class Foo extends Object {
constructor() {
this.x = 1;
}
}
class Foo {
constructor(flag) {
if (flag) {
super()
}
this.x = 10
}
}
class AutoComponent extends React.Component {
constructor() {
super()
var cls = this.constructor
var methods, methodName
while (cls !== AutoComponent) {
methods = Object.getOwnPropertyNames(cls.prototype)
for (var i in methods) {
methodName = methods[i]
if (methodName.match(/^on[A-Z]/) !== null) {
public class InputManager : StateMachineBehavior<InputManager.InputState> {
public class InputState : State {
public virtual void OnHits(RaycastHit[] hits) {
}
}
public class StateIdle : InputState {
public override void OnHits(RaycastHit[] hits) {
if (hits.Length > 0) {