Skip to content

Instantly share code, notes, and snippets.

View maxgalbu's full-sized avatar

Massimo Galbusera maxgalbu

  • hotelscan.com
  • Switzerland
View GitHub Profile
/*!
* Datetimepicker for Bootstrap v3
* https://github.com/Eonasdan/bootstrap-datetimepicker/
* Copyright 2012 Stefan Petre
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
.bootstrap-datetimepicker-widget {
top: 0;
@maxgalbu
maxgalbu / SassMeister-input-HTML.html
Created December 22, 2014 16:17
Generated by SassMeister.com.
<nav>
<a href="#" class="selected">Projects</a>
</nav>
@interface UITableView (RemoveSeparatorMargin)
- (void) removeCellSeparatorMargin;
@end
@maxgalbu
maxgalbu / index.js
Created November 13, 2015 10:47
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var bluebird = require('bluebird');
var promise = bluebird.resolve(true);
promise.then(function() {
return new bluebird(function(resolve, reject) {
console.log("test1");
setTimeout(function() {
@maxgalbu
maxgalbu / node.sh
Last active December 18, 2015 01:39 — forked from jmtagarro/node.sh
removing repeating whitespaces put the PID in 2nd position, not 6th
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
# Creamos un fichero PID para monit
SCRIPT="$(basename $0)"
// ==UserScript==
// @name New ES6-Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description shows how to use babel compiler
// @author You
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js
// @match http://*/*
// ==/UserScript==
@maxgalbu
maxgalbu / skygo.js
Created October 21, 2016 23:47
Greasemonkey/tampermonkey plugin that gets the imdb rating for the movies in the SkyGo.it pages
// ==UserScript==
// @name New ES6-Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description shows how to use babel compiler
// @author You
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js
// @match http://*/*
// ==/UserScript==
<?php
namespace Vendor\CliOutput;
class CliOutput
{
const BLACK = 'black';
const DARK_GRAY = 'dark_gray';
const BLUE = 'blue';
const LIGHT_BLUE = 'light_blue';

To use it, run these commands:

javac SimpleStringEncrypter.java
java SimpleStringEncrypter
images = {
"tor": "http://i.imgur.com/UUuW9Qh.png",
"sas": "http://i.imgur.com/Uo5yXYs.png",
"mia": "http://i.imgur.com/ySTYXC9.png",
"was": "http://i.imgur.com/z10kI4z.png",
"uta": "http://i.imgur.com/ML08bL3.png",
"sac": "http://i.imgur.com/gqkz8M2.png",
"por": "http://i.imgur.com/1Xu5aos.png",
"phx": "http://i.imgur.com/zjzqcss.png",
"orl": "http://i.imgur.com/tA6HPki.png",