Skip to content

Instantly share code, notes, and snippets.

Gabriele Marazzi gabrielem

Block or report user

Report or block gabrielem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View __
test('two plus two is four', () => {
expect(2 + 2).toBe(4)
describe('canary', function () {
it('can run a test', function () {

Keybase proof

I hereby claim:

  • I am gabrielem on github.
  • I am g4nd4l7 ( on keybase.
  • I have a public key ASDrHzsnFZ07B7yxpRAlry0po-ipWYzh_k7IDfdHPX70Ago

To claim this, I am signing this object:

View simpleVanillaTODO
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta charset="utf-8">
<title>My TODO List</title>
<link href="" rel="stylesheet">
<link href="" rel="stylesheet" crossorigin="anonymous">
<style media="screen">
gabrielem /
Created Dec 2, 2016 — forked from mpolci/
Postponed AngularJS bootstrap for Truffle since version 2.0.8

Truffle since release 2.0.8 delays the initialization of the global variable web3 after the load event, so this variable is not available during angular bootstrap, inside a .config() section, inside providers and neither inside the controllers initialized at load time and related injected services.

Accessing to the web3 variable inside a setTimeout() call could be a solution for simple projects but the only way to be sure that web3 is initialized is to postpone the angular bootstrap.

Looks at the code below:

gabrielem / projects.html
Last active Nov 20, 2016
View projects.html
<!DOCTYPE html>
<!--[if IE 8]><html class="ie8 no-js" lang="en"><![endif]-->
<!--[if IE 9]><html class="ie9 no-js" lang="en"><![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!-- start: HEAD -->
<title>Browse Projects paid for in bitcoin - Work for bitcoin doing Jobs & Projects</title>
gabrielem / gist:5c3a543e1f0999e33b2242ee6643fcb3
Created Sep 17, 2016
FlattenArray - For
View gist:5c3a543e1f0999e33b2242ee6643fcb3
function flatten(arr) {
const flat = [].concat(...arr)
return flat.some(Array.isArray) ? flatten(flat) : flat;
gabrielem / class-milo-shortcodes.php
Created Mar 12, 2016
View class-milo-shortcodes.php
* The file that defines the core plugin class
* A class definition that includes attributes and functions used across both the
* public-facing side of the site and the admin area.
* @link
* @since 1.0.0
gabrielem / Codice modificato
Created Aug 31, 2015
Aggiorna il tuo config.yml che si trova in /EMLcms/app/config/config.yml
View Codice modificato
# Twig Configuration
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
web_path: %web_path%
Globalizer: "@Globalizer"
gabrielem / Tool 1
Created Mar 27, 2015
BookMark per Responsive Tools
View Tool 1
javascript:void((function(){var d=document;d.write('<!DOCTYPE html><html><head><meta charset="UTF-8"><title>'+d.title+' - Responsive test</title><link rel="stylesheet" href=""><script src=""></script></head><body><header><div class="close"><a href="#">%C3%97</a></div><div id="size"></div><div class="keyboard"><a href="#">I</a></div><div class="cssrefresh"><a href="#">I</a></div><div id="devices"><a href="#" class="tablet-portrait"><span>Tablet Portrait</span></a><a href="#" class="tablet-landscape"><span>Tablet Landscape</span></a><a href="#" class="smartphone-landscape"><span>iPhone Landscape</span></a><a href="#" class="smartphone-portrait"><span>iPhone Portrait</span></a><a href="#" class="auto active"><span>Auto</span></a></div></header><section><div id="wrapper"><iframe src="'+d.URL+'" onLoad="resbook.changeUrl(this.contentWindow.location,this.contentDocument.title);"></iframe><span class="keyboard-b
View WebSql index.js
<!DOCTYPE html>
Copyright (c) 2012-2014 Adobe Systems Incorporated. All rights reserved.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
You can’t perform that action at this time.