Skip to content

Instantly share code, notes, and snippets.

View Rolograaf's full-sized avatar

Lourens Rolograaf

View GitHub Profile
mylib.close_to_tray = ->
gui = require('nw.gui')
win = gui.Window.get()
tray = null
win.on 'close', ->
this.hide()
tray = new gui.Tray({ icon: 'icon.jpg' })
@Rolograaf
Rolograaf / jsbin.kazudepu.css
Created April 27, 2014 15:46
Flexbox demonstration
.flex
{
/* basic styling */
width: 350px;
height: 300px;
border: 1px solid #555;
font: 14px Arial;
/* flexbox setup */
display: -webkit-flex;
@Rolograaf
Rolograaf / jsbin.sihew.css
Created April 27, 2014 15:53
Holy Grail Layout with Flexbox example
body {
font: 24px Helvetica;
background: #999999;
}
#main {
min-height: 800px;
margin: 0px;
padding: 0px;
display: -webkit-flex;
@Rolograaf
Rolograaf / app.js
Created May 3, 2014 14:10 — forked from amineeg/app.js
https://www.youtube.com/watch?v=4Y6LM4Y_K6c Angular simple login with php
'use strict';
// Declare app level module which depends on filters, and services
var app= angular.module('myApp', ['ngRoute']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/login', {templateUrl: 'partials/login.html', controller: 'loginCtrl'});
$routeProvider.otherwise({redirectTo: '/login'});
}]);
@Rolograaf
Rolograaf / my.css
Created February 16, 2016 19:38 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(147deg, #336699, #dde71d);
background-size: 400% 400%;
-webkit-animation: AnimationRolograafBackground 3s ease infinite;
-moz-animation: AnimationRolograafBackground 3s ease infinite;
-o-animation: AnimationRolograafBackground 3s ease infinite;
animation: AnimationRolograafBackground 3s ease infinite;
@-webkit-keyframes AnimationRolograafBackground {
    0%{background-position:0% 5%}
    50%{background-position:100% 96%}
    100%{background-position:0% 5%}
@Rolograaf
Rolograaf / AJM40-Rolograaf-3-Layers.kbd.json
Last active May 27, 2017 18:03
AJM40 Rolograaf 3 Layers
[
{
"name": "AJM40 Rolograaf 3 Layers",
"author": "Rolograaf",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-Green",
"pcb": true,
"plate": true
},
@Rolograaf
Rolograaf / AJM40-Rolograaf-Layer-0.kbd.json
Last active June 18, 2017 15:51
AJM40 Rolograaf Layer 0
[
{
"name": "AJM40 Rolograaf Layer 0",
"author": "Rolograaf",
"background": {
"name": "Carbon fibre 2",
"style": "background-image: url('/bg/carbonfibre/carbon_texture1874.png');"
},
"switchMount": "cherry",
"switchBrand": "gateron",
@Rolograaf
Rolograaf / AMJ40-Rolograaf-Colemak.kbd.json
Last active June 17, 2017 12:33
AMJ40 Rolograaf Colemak
[
{
"name": "AMJ40 Rolograaf Colemak",
"author": "Rolograaf",
"background": {
"name": "Carbon fibre 4",
"style": "background-image: url('/bg/carbonfibre/carbon_texture1873.png');"
},
"radii": "10px",
"switchMount": "cherry",