Skip to content

Instantly share code, notes, and snippets.

View qgustavor's full-sized avatar
🤔
Thinking why people forked megajs

Gustavo Rodrigues qgustavor

🤔
Thinking why people forked megajs
View GitHub Profile
var reservedWords = "arguments caller length name prototype __proto__".split(" ")
module.exports = createNamedParameters
function createNamedParameters(argv, fn) {
var length = fn.length
var composed = Array(length)
if (argv.length !== length) throw new Error("Argument lengths don't match")
function composing() {
@qgustavor
qgustavor / index.js
Last active August 29, 2015 14:18 — forked from tylor/index.js
/**
* This script takes a directory of images, looks for GPS
* coordinates in each file, and then writes the filename and
* decimal degrees to CSV. If you're pulling images off of your
* iPhone, using Image Capture is a quick way to move them onto
* your computer and get started.
*
* Make sure you have imagemagick installed:
* $ brew install imagemagick
* Download these files and install dependencies:
@qgustavor
qgustavor / index.html
Last active February 4, 2016 21:49 — forked from darwin/index.html
O que é ratio?
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
@qgustavor
qgustavor / multi_dashboard.html
Created July 12, 2016 12:32 — forked from battlehorse/multi_dashboard.html
A Google Charts dashboard setup where multiple datatables are used to power a single 'logical' dashboard.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
Google Visualization API Sample
</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['controls']});
@qgustavor
qgustavor / index.js
Last active July 25, 2016 17:50 — forked from MattMcFarland/index.js
requirebin sketch
const choo = require('choo')
const html = require('choo/html')
const app = choo()
app.model({
state: { newValue: '', videos: [] },
reducers: {
add: (action, state) => ({
newValue: '',
videos: [action.value || state.newValue]
@qgustavor
qgustavor / _gistfile1.md
Last active August 11, 2016 11:54 — forked from ciaranj/gist:9056285
A *working* (on Windows) UDP Multicast client & server with Node.Js v0.10.25 (I spent a *LOT* of time getting EINVAL and I still don't quite know why :/)
@qgustavor
qgustavor / duckduckgo.user.css
Last active January 4, 2023 20:50 — forked from Thesola10/duckduckgo.user.css
Replaces the default DuckDuckGo icon with Virtual Youtuber Oozora Subaru from Hololive.
/* ==UserStyle==
@name DuckDuckGo From Hologra Episode 139
@namespace thesola10
@version 1.0.0
@license MIT
@updateURL https://gist.github.com/qgustavor/f46d933d45dac29b6894f8c60d0d1e9d/raw/duckduckgo.user.css
@author thesola10, qgustavor
==/UserStyle== */
@-moz-document domain("duckduckgo.com") {