Skip to content

Instantly share code, notes, and snippets.

View javierarce's full-sized avatar

Javier Arce javierarce

View GitHub Profile
I think you mean team...
I think you mean squad..
I think you mean gang...
I think you mean pals...
I think you mean buds...
I think you mean posse...
I think you mean phalanx...
I think you mean crew...
I think you mean crüe...
I think you mean nerds...
@andrewxhill
andrewxhill / change_log.sql
Last active August 29, 2015 14:23
Create a table to store changes from any of your tables in a log table.
--
-- Create a table in your CartoDB editor called 'version_control'
-- Run the following SQL in your editor to create the needed columns
--
ALTER TABLE version_control ADD COLUMN data json;
ALTER TABLE version_control ADD COLUMN source_id integer;
ALTER TABLE version_control ADD COLUMN table_name text;
ALTER TABLE version_control ADD COLUMN tg_op text;

#RIOT CODE GRRRL MANIFESTO #####(based on the original RIOT GRRRL MANIFESTO)

BECAUSE us girls crave apps and games and websites that speak to US that WE feel included in and can understand in our own ways.

BECAUSE we wanna make it easier for girls to see/hear each other's work so that we can share strategies and criticize-applaud each other.

BECAUSE we must take over the means of production in order to create our own revolution.

BECAUSE viewing our work as being connected to our girlfriends-politics-real lives is essential if we are gonna figure out how we are doing impacts, reflects, perpetuates, or DISRUPTS the status quo.

@abynim
abynim / Sketch Plugin Snippet - Managing Files.js
Last active April 30, 2024 10:02
Sketch Plugin functions for working with files.
var writeTextToFile = function(text, filePath) {
var t = [NSString stringWithFormat:@"%@", text],
f = [NSString stringWithFormat:@"%@", filePath];
return [t writeToFile:f atomically:true encoding:NSUTF8StringEncoding error:nil];
}
var readTextFromFile = function(filePath) {
var fileManager = [NSFileManager defaultManager];
if([fileManager fileExistsAtPath:filePath]) {
return [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
@harperreed
harperreed / electric_objects.py
Last active August 11, 2022 10:02
Electric objects simple API wrapper
import requests
import urllib
import requests
import json
import random
"""
here is a wrapper for the *unreleased* electric objects API
Built by Harper Reed ([email protected]) - @harper
@marcelinollano
marcelinollano / anki.rb
Last active August 26, 2020 11:16
You can use Markdown inside the questions and answers! Images in the same folder though.
#!/usr/bin/env ruby
# Usage:
#
# => brew install imagemagick
# => gem install anki2 kramdown rmagick image_optim image_optim_pack
# => chmod +x ./anki.rb
# => ./anki.rb questions.md
require 'rubygems'
@bishboria
bishboria / springer-free-maths-books.md
Last active May 10, 2025 04:28
Springer made a bunch of books available for free, these were the direct links

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 20 Jan 2015 16:48:39 GMT till Wed, 20 Jan 2016 16:48:39 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 539)
@yangchenyun
yangchenyun / fetch_kindle.js
Last active February 19, 2023 10:10
Get back my books from Kindle
/*
* @fileoverview Program to free the content in kindle books as plain HTML.
*
* This is largely based on reverse engineering kindle cloud app
* (https://read.amazon.com) to read book data from webSQL.
*
* Access to kindle library is required to download this book.
*/
// The Kindle Compression Module copied from http://read.amazon.com application
@lightman76
lightman76 / google_contacts_api.rb
Last active August 8, 2017 10:40
Class to interface with Google Contacts API in Ruby. Adapted from https://gist.github.com/cantino/d1a63045fbfe5fc55a94 . Initialize the class with client which is a hurley client and auth is a Signet::OAuth2::Client - I'm using the versions from the google-api-ruby-client 0.9.x series. Hurley client can be one created straight up or prebuilt fro…
#Adapted from https://gist.github.com/cantino/d1a63045fbfe5fc55a94
module ContactList
class GoogleContactsApi
MAX_RESULTS = "250"
attr_reader :client
def initialize(client, auth)
@client = client