Skip to content

Instantly share code, notes, and snippets.

View adilapapaya's full-sized avatar

adilapapaya

View GitHub Profile
@willwade
willwade / commands.md
Last active September 20, 2025 08:02
Apple iOS Voice Control commands list. These are the default ones listed in the settings. If you are looking for the Catalina commands Ron Leblanc has compiled a great list (https://www.dropbox.com/s/stacghczr68o8az/Voice%20Control%20Commands.xlsx?dl=0)
@Fil
Fil / .block
Last active February 2, 2025 02:38
Fabio Crameri’s Colormaps
license: mit
@jakebathman
jakebathman / StateBoundaries.sql
Last active May 29, 2025 19:15
The approximate max/min latitude and longitude for all states and major territories
-- Create the table
CREATE TABLE IF NOT EXISTS `StateBoundaries` (
`State` varchar(10) DEFAULT NULL,
`Name` varchar(255) DEFAULT NULL,
`MinLat` varchar(50) DEFAULT NULL,
`MaxLat` varchar(50) DEFAULT NULL,
`MinLon` varchar(50) DEFAULT NULL,
`MaxLon` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@adilapapaya
adilapapaya / examples.R
Last active August 29, 2015 14:19 — forked from skranz/s_dplyr
# Examples
library(dplyr)
source("s_dplyr.R");
# Original usage of dplyr
mtcars %>%
filter(gear == 3,cyl == 8) %>%
select(mpg, cyl, hp:vs)
# Select user specified cols.
@miguelmota
miguelmota / base64-to-png.js
Created September 24, 2014 21:33
Base64 to PNG in Node.js
var fs = require('fs');
var path = require('path');
function base64ToPNG(data) {
data = data.replace(/^data:image\/png;base64,/, '');
fs.writeFile(path.resolve(__dirname, '../tmp/image.png'), data, 'base64', function(err) {
if (err) throw err;
});
}
@mbostock
mbostock / .block
Last active September 11, 2024 10:57
Prim’s Algorithm III
license: gpl-3.0
@adilapapaya
adilapapaya / README.md
Created March 31, 2014 19:42
A Better Meteor Template

The Setup

Note: app-name corresponds to the name of your app

Create the app
meteor create app-name
cd app-name
rm app-name* 
@adilapapaya
adilapapaya / README
Last active November 12, 2024 01:40
Export Table Data to CSV using Javascript
Example code for exporting data in a table to a csv file.
@skranz
skranz / s_dplyr
Created March 21, 2014 07:48
Wrappers to dplyr's data modification functions like arrange, select,... that work with string arguments.
# Helper functions that allow string arguments for dplyr's data modification functions like arrange, select etc.
# Author: Sebastian Kranz
# Examples are below
#' Modified version of dplyr's filter that uses string arguments
#' @export
s_filter = function(.data, ...) {
eval.string.dplyr(.data,"filter", ...)
}