Skip to content

Instantly share code, notes, and snippets.

View Rolograaf's full-sized avatar

Lourens Rolograaf

View GitHub Profile
@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 / 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'});
}]);
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' })