This is a collection of mathmatic equations that has helped me in a variety of design projects.
Given the amount of objects, and their width or height (e.g. in pixels) we can calculate the width or height of an area that these objects fit in.
/* | |
Memberwise Initializers with Optional Arguments and Default Values | |
This playground explains a proposal to enhance the use of the great | |
feature; member variables. To extend the possibilities of the Swift | |
language and still keep it simple enough to understand. | |
Member initializers are a great addition, and helps scaffolding | |
structures, without doing initial boilerplate code. It works well, | |
but there's some differences when it comes to Optional types and |
This is a collection of mathmatic equations that has helped me in a variety of design projects.
Given the amount of objects, and their width or height (e.g. in pixels) we can calculate the width or height of an area that these objects fit in.
<div class="container"></div> |
gulp = require('gulp') | |
newer = require('gulp-newer') | |
unretina = require('gulp-unretina') | |
rename = require('gulp-rename') | |
###* | |
# Transforms the path from e.g. asset_2x.png to asset.png | |
# @param {String} suffix The suffix to remove | |
### | |
transformPath = (suffix) -> |
[hub] | |
protocol = https | |
[user] | |
name = Christian Petersen | |
email = [email protected] | |
[credential] | |
helper = osxkeychain |
I hereby claim:
To claim this, I am signing this object:
'use strict' | |
const chr = (codePoint) => String.fromCharCode(codePoint) | |
function bin2hex (s) { | |
let o = '' | |
for (let i = 0, l = s.length; i < l; i++) { | |
let n = s.charCodeAt(i).toString(16) | |
o += (n.length < 2 ? '0' + n : n) | |
} |
//------------------------------------------------ | |
//--- 010 Editor v7.0.2 Binary Template | |
// | |
// File: WAD3 | |
// Authors: @fnky | |
// Purpose: Parsing Half-Life WAD3 File | |
// Category: Archive | |
// File Mask: *.wad | |
// ID Bytes: 57 41 44 33, 57 41 44 32 | |
//------------------------------------------------ |