Skip to content

Instantly share code, notes, and snippets.

nbogie

Block or report user

Report or block nbogie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sweet-potato-curry.json
{
"title": "Sweet Potato & Spinach Curry With Lemony Rice",
"ingredients": [
"1 brown onion",
"50g solid coconut cream",
"2 garlic cloves",
"2 tomatoes",
"1 tbsp curry powder",
"1 lemon",
"1 pinch of saffron",
@nbogie
nbogie / recipe.json
Last active May 17, 2019
cyf - example recipe for recipe API
View recipe.json
{
"title": "Adana",
"ingredients": [
"1 kg ground lamb",
"Kosher salt",
"4 teaspoons ground cumin, divided",
"4 tablespoons ground sumac, divided",
"4 tablespoon ground Urfa pepper flakes, divided",
"4 tablespoons ice-cold water"
],
@nbogie
nbogie / glitch-to-git.md
Last active May 16, 2019
CYF: Back up a glitch project to git (and then GitHub)
View glitch-to-git.md

CYF: Back up a glitch project to git (and then GitHub)

These instructions are only needed if, like me, you don't want to have to trust glitch completely with permissions to read AND write your data on github directly.

Step: From your glitch project, click on "tools":

tools

@nbogie
nbogie / quotes.json
Last active May 13, 2019 — forked from nasrulhazim/quotes.json
Misc quotes list in JSON Format for CYF exercises
View quotes.json
[
{
"quote": "Life isn’t about getting and having, it’s about giving and being.",
"author": "Kevin Kruse"
},
{
"quote": "Whatever the mind of man can conceive and believe, it can achieve.",
"author": "Napoleon Hill"
},
{
@nbogie
nbogie / pickRandomFromArray.js
Created May 4, 2019
a function which, when given an array of elements, will return one element picked at random from that array.
View pickRandomFromArray.js
function pickRandom(arr) {
let ix = Math.floor(Math.random() * arr.length);
return arr[ix];
}
@nbogie
nbogie / i3-on-lubuntu-cheatsheet.md
Last active Oct 10, 2019
My i3-on-lubuntu cheatsheet. Not much here yet.
View i3-on-lubuntu-cheatsheet.md
@nbogie
nbogie / NetlifyHosting.md
Last active Jun 19, 2019
CYF: Instructions for hosting with Netlify
View NetlifyHosting.md
View jsquiz.js
/* Welcome to the JS quiz!
*
* This is to help mentors know what we need to do better.
*
* You are welcome to use MDN to check syntax: https://developer.mozilla.org
*/
/* Question 1
*
* Write a function that takes two numbers and returns the the largest number of the two.
@nbogie
nbogie / microbit-console-two_values_but_5_charts.txt
Last active Feb 16, 2019
two values but 5 charts! Capture of the microbit using serial write numbers to write a 2-element array - code here: https://makecode.microbit.org/_7PtcruikCbPA Makecode generates multiple charts from the data stream received from the microbit, though in the simulator the chart is reliably rendered as two lines on one chart.
View microbit-console-two_values_but_5_charts.txt
0,255
0,255
0,255
0,255
0,255
6,249
7,248
7,248
7,248
6,249
@nbogie
nbogie / microbit-console-16-2019-14.txt
Last active Feb 16, 2019
exported csv and txt from makecode microbit serial recording. See screenshot in the comments.
View microbit-console-16-2019-14.txt
0,255
0,255
0,255
0,255
0,255
13,242
18,237
24,231
27,228
You can’t perform that action at this time.