Skip to content

Instantly share code, notes, and snippets.

Avatar
💾

Tania Rascia taniarascia

💾
View GitHub Profile
@taniarascia
taniarascia / auth.md
Last active Jul 4, 2020
JavaScript Authentication & Authorization Book/Course
View auth.md

Authentication in Real-World Web Apps with JavaScript

Outline of ideas, concepts to cover, potential projects to write.

Setup Idea

  • Book with a video for each chapter.

Prerequisites/Overview

@taniarascia
taniarascia / index.css
Created Mar 6, 2020
React Redux Application
View index.css
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
p {
font-size: 1.1rem;
}
@taniarascia
taniarascia / fakeNotes.json
Last active Sep 28, 2019
fake initial state test
View fakeNotes.json
[
{
"id":"shfksjh32hrkwefhkj3h",
"text":"# Example default note\n\n- [Laconia](https://laconia.dev)\n- [Chip8.js](https://github.com/taniarascia/chip8",
"created":"",
"lastUpdated":""
},
{
"id":"893hfehfkjshkj233",
"text":"# Another something else\n\nEveryone loves notes",
View async.js
method1 = async () => {
const things = await getThings()
for (let thing of things) {
const stuff = await getStuffFromThing(thing)
console.log(stuff) // works
}
}
method2 = async () => {
View new-moon.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.77254903316497803</real>
View Roadmap.md

Roadmap of Web Development

Getting Started

Operating System

What operating system your computer runs on.

  • Mac, Windows, Linux
View demorgan.js
(this == that || these == those) is (this != that && these != those)
!(a && b) == (!a || !b)
!(a || b) == (!a && !b)
@taniarascia
taniarascia / useful.sh
Last active May 14, 2019
Useful random stuff
View useful.sh
# open all files named package.json within a directory
find . -name package.json -exec code {} +
# don't open or jump anywhere
<a href="#!">
# get an object from console
> store as a global variable
JSON.stringify(temp1)
View disassembly
000000 121a JP 0x21a
000002 434f SNE V3, 0x4f
000004 4e4e SNE Ve, 0x4e
000006 4543 SNE V5, 0x43
000008 5434 DW 0x5434
00000a 2062 CALL 0x62
00000c 7920 ADD V9, 0x20
00000e 4461 SNE V4, 0x61
000010 7669 ADD V6, 0x69
000012 6420 LD V4, 0x20
@taniarascia
taniarascia / sort.js
Created Jan 2, 2019
Compare object of arrays by property include nulls and secondary property
View sort.js
function compareProperty(a, b) {
return a || b ? (!a ? 1 : !b ? -1 : a.localeCompare(b)) : 0
}
function myComparer(a, b) {
return compareProperty(a.jewelerName, b.jewelerName) || compareProperty(a.name, b.name)
}
// Flatten array
const flattened = [].concat.apply([], tableAssignmentsLookup)
You can’t perform that action at this time.