Skip to content

Instantly share code, notes, and snippets.

View maggo's full-sized avatar
😸
work work

Marco maggo

😸
work work
View GitHub Profile
@maggo
maggo / attestation.txt
Created September 2, 2021 22:58
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 9
Hash: e3301acb 94b18388 96abbc42 2cd9019b
dfb895f8 9ec305b2 31ea9e77 e3ec5c85
968c5e5c 64d57843 717cfd09 51b372db
775c33bb 2266ffd0 217c6bb3 52a08c78

Keybase proof

I hereby claim:

  • I am maggo on github.
  • I am maggo (https://keybase.io/maggo) on keybase.
  • I have a public key ASD5V9hhf7j2WjXUZyt8sCz6nEev57St3P5OI7HYtk1j2go

To claim this, I am signing this object:

0x594d207655f603fCDC36CA11dA677AbcB097388f
@maggo
maggo / Mediaquery Mixin
Last active August 29, 2015 14:15
Mixin for centralized media query management in SCSS
/**
* Mediaquery collection, used to build responsive features.
*/
$mediaqueries:
small "only screen",
medium "only screen and (min-width: 768px)",
large "only screen and (min-width: 1024px)"
!default;
@mixin media($query-id) {
@maggo
maggo / svg-png-fallback.js
Created September 30, 2014 09:25
SVG fallback to png file, based on Modernizr & jQuery
if(typeof Modernizr === "object" && !Modernizr.svg) {
$('img[src$=".svg"]').each(function() {
var $this = $(this),
newSrc = $this.attr('src').replace(/\.svg$/, '.png');
$this.attr('src', newSrc);
});
}
@maggo
maggo / _foundation-icons.scss
Last active December 20, 2015 12:28
Foundation icon partial.
//
// Icon variables
//
$icon-font-path: '/font/icons/' !default;
$icon-font-name: 'entypo' !default;
$icons: (
(phone, "\1F4DE"),
(mobile, "\1F4F1"),
@maggo
maggo / webcamshot.post_commit
Created October 24, 2012 14:42
Creates a webcam snapshot every time you commit something.
#!/usr/bin/env ruby
#
# $ brew install imagesnap
#
file="~/.gitshots/#{Time.now.to_i}.jpg"
puts "Taking capture into #{file}!"
system "imagesnap -q -w 3 #{file} &"
exit 0
@maggo
maggo / jQuery.sublime-snippet
Created April 19, 2012 13:21
Sublime Text Snippet: jQuery embed
<snippet>
<content><![CDATA[<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
(function(\$){
\$(function(){
$1
});
})(jQuery);
</script>]]></content>
<tabTrigger>jquery</tabTrigger>
@maggo
maggo / gist:1414988
Created December 1, 2011 08:28
Recursive UTF8 encode
<?php
function array_encode(&$arr){
array_walk_recursive($arr, function(&$val, $key){
$val = utf8_encode($val);
});
return $arr;
}
@maggo
maggo / gist:978374
Created May 18, 2011 11:05
PHP Execution-Time
<?php
$starttime = time();
// Your code
echo 'Execution-Time: '.date('i:s', time()-$starttime);