This is a WIP of a cheat-sheet that I will finish Eventually™
Mapping of the shader types to Heaps types:
Float = Float
Int = Int
Bool = Bool
[package] | |
name = "specs-roguelike" | |
version = "0.1.0" | |
authors = ["youCodeThings"] | |
edition = "2018" | |
[dependencies] | |
tcod = "0.13" | |
specs = "0.14.0" |
const Bundler = require('parcel-bundler'); | |
const childProcess = require('child_process'); | |
const file = 'index.js'; | |
const options = {}; | |
const bundler = new Bundler(file, options); | |
const runBundle = process.argv.includes('run'); | |
let bundle = null; |
@mixin for-size($size) { | |
@if $size == phone-only { | |
@media (max-width: 599px) { @content; } | |
} @else if $size == tablet-portrait-up { | |
@media (min-width: 600px) { @content; } | |
} @else if $size == tablet-landscape-up { | |
@media (min-width: 900px) { @content; } | |
} @else if $size == desktop-up { | |
@media (min-width: 1200px) { @content; } | |
} @else if $size == big-desktop-up { |
@mixin for-size($range) { | |
$phone-upper-boundary: 600px; | |
$tablet-portrait-upper-boundary: 900px; | |
$tablet-landscape-upper-boundary: 1200px; | |
$desktop-upper-boundary: 1800px; | |
@if $range == phone-only { | |
@media (max-width: #{$phone-upper-boundary - 1}) { @content; } | |
} @else if $range == tablet-portrait-up { | |
@media (min-width: $phone-upper-boundary) { @content; } |
APP_ENV=testing | |
APP_KEY=SomeRandomString | |
DB_CONNECTION=testing | |
DB_TEST_USERNAME=root | |
DB_TEST_PASSWORD= | |
CACHE_DRIVER=array | |
SESSION_DRIVER=array | |
QUEUE_DRIVER=sync |
import R from 'ramda'; | |
function newId(){ | |
let d = new Date().getTime(); | |
let uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
const r = (d + Math.random()*16)%16 | 0; | |
d = Math.floor(d/16); | |
return (c=='x' ? r : (r&0x3|0x8)).toString(16); | |
}); | |
return uuid; |
var base_path = __dirname.replace('resources/node', ''); | |
require('dotenv').config({ | |
path: base_path + '.env' | |
}); | |
var env = process.env; | |
/* Illuminate\Auth\SessionGuard@getName */ | |
var loginSHA1 = 'login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d'; |