Skip to content

Instantly share code, notes, and snippets.

View FalkoJoseph's full-sized avatar
🍔
1337

Falko Joseph FalkoJoseph

🍔
1337
View GitHub Profile
// CONCAT
/////////////////////////////////////////////////
function parse_var(val, line_nr)
{
// LINE
THE_LINE = line_nr+1;
// SPLIT THE CONCATTED VALUES
concat_data = val.split("+");
trace(concat_data);
function parse_var(val, line_nr)
{
// LINE
THE_LINE = line_nr+1;
// REMOVE THE THING BEFORE =
if (val.indexOf(" = ")){
val = val.slice(val.indexOf("=")+2, val.length);
}else if (val.indexOf("= ")){
val = val.slice(val.indexOf("="), val.length);
}else if (val.indexOf("=")){
@FalkoJoseph
FalkoJoseph / gist:1128411
Created August 5, 2011 20:17
Concat string
// CONCAT
/////////////////////////////////////////////////
function parse_concat(val, line_nr)
{
// LINE
THE_LINE = line_nr+1;
// RESET
var_temp = "";
// GET NAME
@FalkoJoseph
FalkoJoseph / gist:1129454
Created August 6, 2011 15:52
TinyRuby Syntax
color = "red"
shape = "triangle"
mix = color + shape
puts mix
=> redtriangle
if color == "red"
puts color
end
<cobalt>
<header>
<title="OpenCobalt"></title>
<version>0.1</version>
</header>
<include>
<src>libscale.txt</src>
<src>libcompress.txt</src>
<scr>libmonitor.txt</src>
</include>
/**************************************
WINDOW
***************************************/
#titlebar {
-webkit-user-select: none;
-webkit-app-region: drag;
padding: 10px;
border-bottom: 1px solid #292929;
box-shadow: 0 1px 1px rgba(0,0,0,0.05);
color: #ffffff;
@FalkoJoseph
FalkoJoseph / HTML Structure
Last active August 29, 2015 14:04
Minimal site structure. Not sure if "grid-cell" and "grid" objects are meant to have any other classes beside their own main purpose. I also tried to use heading tags efficiently as well toning down the total number of classes.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ page.title }}</title>
<meta name="author" content="http://nielsenramon.be/">
<meta name="description" content="{{ page.description }}">
(function ($) {
/**
* @function
* @property {object} jQuery plugin which runs handler function once specified element is inserted into the DOM
* @param {function} handler A function to execute at the time when the element is inserted
* @param {bool} shouldRunHandlerOnce Optional: if true, handler is unbound after its first invocation
* @example $(selector).waitUntilExists(function);
*/

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default