Skip to content

Instantly share code, notes, and snippets.

View CodesOfRa's full-sized avatar
🐳
probably drinking ☕️ or eating 🧀

Ramona CodesOfRa

🐳
probably drinking ☕️ or eating 🧀
View GitHub Profile
@CodesOfRa
CodesOfRa / oneliners.js
Created April 2, 2019 07:11 — forked from mikowl/oneliners.js
👑 Awesome one-liners you might find useful while coding.
// By @coderitual
// https://twitter.com/coderitual/status/1112297299307384833
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// Type this in your code to break chrome debugger in that line.
@CodesOfRa
CodesOfRa / breaking_API_changes.md
Created March 11, 2019 13:40 — forked from caisq/breaking_API_changes.md
Breaking API Changes and New APIs in TensorFlow.js 1.0 Through Examples

1. Model-loading function name changes

Rationale: Indicate type of model being loaded more explicitly in code.

For models converted from Keras and models saved from TensorFlow.js itself:

// Before: 
await tf.loadModel('http://server/model.json');
@CodesOfRa
CodesOfRa / GitCommitEmoji.md
Created December 5, 2018 17:14 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@CodesOfRa
CodesOfRa / gist:8aaed6bc6656e246eaa49060e5ae4d22
Created November 28, 2018 22:56 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@CodesOfRa
CodesOfRa / example.css
Created October 31, 2018 11:38 — forked from dk8996/example.css
D3.js Gantt Chart, example 3
html,body,#wrapper {
width: 100%;
height: 100%;
margin: 0px;
}
.chart {
font-family: Arial, sans-serif;
font-size: 12px;
}
@CodesOfRa
CodesOfRa / airbus_data.tsv
Created October 27, 2018 00:37 — forked from atmccann/airbus_data.tsv
Animated path multi-series line chart
date Airbus Boeing
2000-07-31 0 0
2000-08-31 -0.884 9.8912
2000-09-29 9.6685 32.1383
2000-10-31 32.5967 38.9245
2000-11-30 33.1492 41.4853
2000-12-29 30.7182 35.2113
2001-01-31 27.0718 19.8464
2001-02-28 24.3094 27.4264
2001-03-30 16.0773 14.1306
@CodesOfRa
CodesOfRa / README-Template.md
Created August 29, 2018 08:30 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@CodesOfRa
CodesOfRa / gist:c38eb3a38908d41bef7c852fb96f1ca6
Created August 1, 2018 12:46 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@CodesOfRa
CodesOfRa / tutorial.md
Created July 26, 2018 15:35 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@CodesOfRa
CodesOfRa / Flask on CF.md
Created May 30, 2018 10:09 — forked from ihuston/Flask on CF.md
Simple Flask application for Cloud Foundry

Simple Python Flask app on Cloud Foundry

This is a (very) simple Flask application that shows how the built-in Python buildpack detection on Cloud Foundry works.

To push to Cloud Foundry, log in and then use

$ cf push myapp-name

Python on Cloud Foundry