Skip to content

Instantly share code, notes, and snippets.

@RobinMalfait
RobinMalfait / taak_.html
Last active December 23, 2015 04:09
HTML: Web Design Template
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Robin Malfait</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<script>
@RobinMalfait
RobinMalfait / faculteit.js
Last active December 23, 2015 04:09
JavaScript: Faculteit
function faculteit (getal) {
var resultaat = 1;
for (var i = 1; i <= getal; i++) {
resultaat = resultaat * i;
};
return resultaat;
}
@RobinMalfait
RobinMalfait / gotoXY.cpp
Last active December 23, 2015 19:39
CPP: Go to a specific coord;
#include <windows.h>
void gotoXY (int col, int row)
{
COORD coord;
coord.X = col;
coord.Y = row;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
@RobinMalfait
RobinMalfait / colors.cpp
Created December 9, 2013 21:36
Linux and Mac awesome colors in command line!
#include <iterator>
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <regex>
/**
* Use namespace std
*/
@RobinMalfait
RobinMalfait / main.css
Created December 12, 2013 20:10
Main.css
/* CSS */
.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,
@RobinMalfait
RobinMalfait / html.css
Last active January 1, 2016 03:39
Prevents the "jump" if you go from a page with more content to another
/**
* Prevents the "jump" if you go from a page with more content to another
**/
html {
overflow-y: scroll;
}

Keybase proof

I hereby claim:

  • I am RobinMalfait on github.
  • I am malfaitrobin (https://keybase.io/malfaitrobin) on keybase.
  • I have a public key whose fingerprint is 39A4 D95F A211 5739 908E 8360 6118 48B2 BF3C EC29

To claim this, I am signing this object:

<snippet>
<content><![CDATA[
<div class="clearfix">
<label for="$1">$2</label>
<div class="input">
<?=form_input('$1', set_value('$1'))?>
</div>
</div>
]]></content>
<tabTrigger>formtext</tabTrigger>
@RobinMalfait
RobinMalfait / FontAwesome.json
Created June 25, 2014 20:42
Font Awesome Json List
{
"icons": [
{
"name": "Glass",
"id": "glass",
"unicode": "f000",
"created": 1,
"categories": [
"Web Application Icons"
]
@RobinMalfait
RobinMalfait / SassMeister-input.scss
Created August 5, 2014 10:48
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
/*=================================
= Preloader =
=================================*/
$size : 150px;