Skip to content

Instantly share code, notes, and snippets.

View oliverloops's full-sized avatar
Powered by coffee

Oliver Lopez oliverloops

Powered by coffee
View GitHub Profile
@RodolfoFerro
RodolfoFerro / address_converter.js
Last active November 22, 2020 03:45
Python/JS script to consume Google Maps API in order to transform a textual address into (lat, long) coordinates.
var coords = [];
async function convert_address(address, API_KEY) {
// Parse address
var city = "+Ciudad+de+México";
var state = "+CDMX";
var parsed_address = address.replace(', ', '+');
parsed_address = parsed_address.replace(' ', '+');
parsed_address = parsed_address.concat(city);
parsed_address = parsed_address.concat(state);
@cruzach
cruzach / sendNotificationToAPNS.js
Created August 24, 2020 21:43
Example of sending a notification to APNS
const jwt = require("jsonwebtoken");
const http2 = require("http2");
const fs = require("fs");
const token = jwt.sign(
{
iss: "APPLE-TEAM-ID"
iat: Math.round(new Date().getTime() / 1000),
},
fs.readFileSync("./myapp_apns_key.p8", "utf8"),
@whoisryosuke
whoisryosuke / limit-map-loop.js
Created July 10, 2018 00:00
Javascript - Limit a `.map()` loop to a certain number using `.slice()`- via: https://stackoverflow.com/questions/42374873/limit-items-in-a-map-loop
var film = this.props.data.slice(0, 5).map((item) => {
return <FilmItem key={item.id} film={item} />
});
return film;
@hkhamm
hkhamm / installing_cassandra.md
Last active June 27, 2024 21:46
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@rxaviers
rxaviers / gist:7360908
Last active November 16, 2024 07:02
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: