Skip to content

Instantly share code, notes, and snippets.

View adg29's full-sized avatar
📱

Alan Garcia adg29

📱
View GitHub Profile
/* 1 */
{
"_id" : ObjectId("585b117d111849c160443616"),
"searchString" : "chicken%20sandwich",
"searchResults" : [
{
"name" : "Seasoning Mix, Honey BBQ Chicken Glaze",
"levenshteinDistance" : 34,
"hit" : {
"item_id" : "51c549ef97c3e6efadd6020e",
@adg29
adg29 / crca-teams.csv
Last active February 7, 2017 16:58
Century Road Club Association Teams 2017
year team
2017 CityMD Racing
2017 NY Vision Group/Fuoriclasse Racing
2017 Blue Ribbon-Pennell Venture Partners
2017 Houlihan Lokey
2017 Foundation
2017 e2Value
2017 Axis Theatre
2017 Sid's Bikes NYC
2017 Radical Media
@adg29
adg29 / business_discovery.json
Created September 7, 2019 03:40
Instagram Graph API
{
"business_discovery": {
"followers_count": 267793,
"media_count": 1205,
"media": {
"data": [
{
"id": "17858843269216389"
},
{
@adg29
adg29 / git-commit-log-viz-eazybi.md
Last active November 5, 2019 18:59
Git Commit Log – Visualizing Changes
  1. Export your Git log to a .txt file from your project directory with git log --numstat >filename.txt
  2. Upload and import your Git log .txt file into eazyBI
  3. Create or import a report definition. Examples below
    1. Changes by Week Day and Hour https://eazybi.com/accounts/9041/cubes/Git%20Commits/reports/42597-git-commit-log-changes-by-week-day-and-hour
    2. Changes by Hour of Day https://eazybi.com/accounts/9041/cubes/Git%20Commits/reports/42592-git-commit-log-changes-by-hour-of-day

References

@adg29
adg29 / projects.js
Last active November 10, 2019 00:09
Portfolio adg29
export default [
{
client: "Puma",
name: "MBBQ Factory",
company: "KBSP",
description: "PUMA online custom shoe website, offering thousands of unique design combinations and user boutiques.",
collaborators: [{
link: "https://figurea.net/PUMA-Factory"
name: "figurea, Creative Direction & Design"
}]
@adg29
adg29 / references.md
Last active November 21, 2019 19:27
Django pagination + React
@adg29
adg29 / leads-api.json
Last active November 22, 2019 01:13
Leads Fixture JSON Generator
[
{
"id": 1,
"name": "Daniels",
"email": "[email protected]",
"message": "Sit anim amet minim aliqua sit aute cupidatat ea nisi tempor cupidatat velit nisi tempor."
},
{
"id": 2,
"name": "Hamilton",
@adg29
adg29 / index.js
Last active November 25, 2019 19:08
unhandledRejection event on process object
process.on('unhandledRejection', (reason, promise) => {
console.log(`Unhandled rejection at ${promise}`)
console.log(`Message ${reason}`)
})
const willThrowErrors = async () => {
return new Promise(function shouldBeCaught(resolve, reject) {
reject(`I should be caught and handled with!`)
})
}
@adg29
adg29 / async-stack-traces.js
Created November 25, 2019 23:35
async stack traces node 10 vs 12
async function sleep(num) {
return new Promise((resolve) => {
setTimeout(resolve, num)
}
}
async function execute() {
await sleep(10)
await stepOne()
}
@adg29
adg29 / async-stack-traces.js
Created November 25, 2019 23:51
async stack traces node 10 vs 12
async function sleep(num) {
return new Promise((resolve) => {
setTimeout(resolve, num)
}
}
async function execute() {
await sleep(10)
await stepOne()
}