Skip to content

Instantly share code, notes, and snippets.

@jose8a
jose8a / ECMA-262-3-Detailed
Created April 20, 2015 07:47
ECMA-262-3 in detail
Javascript - The Core
http://dmitrysoshnikov.com/ecmascript/javascript-the-core/
Ch1 - Execution Contexts - background
http://dmitrysoshnikov.com/ecmascript/chapter-1-execution-contexts/
Ch2 - Variable Object
http://dmitrysoshnikov.com/ecmascript/chapter-2-variable-object/
Ch3 - This
@jose8a
jose8a / App.vue
Created September 9, 2022 19:10
retool-coding-test-file
<script setup>
import { ref, reactive } from 'vue';
let imageData = ref([]);
// let favorites = reactive([]);
let imagesUrl = "https://retoolapi.dev/lfaPzW/dogs";
fetch(imagesUrl)
.then(res => res.json())
.then(r => {
@jose8a
jose8a / ECMA-262-5-Detailed
Created April 20, 2015 07:57
ECMA-262-5 in detail
Ch0 - Introduction
http://dmitrysoshnikov.com/ecmascript/es5-chapter-0-introduction/
Ch1 - Properties and Property Descriptors
http://dmitrysoshnikov.com/ecmascript/es5-chapter-1-properties-and-property-descriptors/
Ch2 - Strict Mode
http://dmitrysoshnikov.com/ecmascript/es5-chapter-2-strict-mode/
Ch3.1 - Lexical Environments: Common Theory
@jose8a
jose8a / Convert MARKDOWN files to HTML
Last active April 26, 2022 09:36
Converting a folder full of markdown files, each linking to each other ... convert those files to HTML, and convert the relative links to point to the new html files. Add code highlighting with highlight.js . Finally serve up the result as a static web site.
Converting md files to html w/highlighting
0a) Create a root directory to pull in all the repos
0b) Recursively clone or pull each repo
$> git clone <repo_url> | git pull on the existing repos
0c) Create a TOC index.html file for the root folder
$> echo '<head>' >> index.html
$> echo '' >> index.html
$> echo '</head>' >> index.html
$> echo '<body>' >> index.html
$> ls >> temp.html
@jose8a
jose8a / JS-Execution
Last active January 2, 2020 00:36
JS Execution Context, Closures, This, Execution Order, Objects
##### Client-side Javascript Execution Order
http://javascript.about.com/od/hintsandtips/a/exeorder.htm
##### Phillip Roberts - What the heck is the Event Loop Anyways?
https://www.youtube.com/watch?v=8aGhZQkoFbQ
##### Javascript and the Browser - Under the Hood (video)
https://www.youtube.com/watch?v=dibzLw4wPms
http://esprima.org/demo/parse.html#
http://int3.github.io/metajs/
@jose8a
jose8a / FED Toolchain setup.md
Last active September 14, 2019 19:01
Setting up project template toolchain w/NPM and grunt

HTML5 Boilerplate Template

  1. Begin by using HTML5 Boilerplate as a starter project template,
  • download the template locall
  • add bash alias to copy that folder when starting a new project
  • e.g. $> 'html5-new PROJECTNAME' will create a folder named PROJECTNAME and will copy the contents of html5boilerplate into PROJECTNAME

Frontend Toolchain Setup

Need NodeJS, npm, grunt

  1. Then add the Frontend Toolchain using NPM and Grunt.
@jose8a
jose8a / README-Template.md
Created February 2, 2018 21:10 — 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

@jose8a
jose8a / .eslintrc
Created April 8, 2016 08:35 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
#!/bin/bash
### Warning - not a script. Do not run in shell. It won't work.
### Sources
* [dpkg dependency problems - 1](http://unix.stackexchange.com/questions/109698/dpkg-dependency-problems-prevent-configuration-of-initramfs-tools/109703#109703)
* [how can I resolve dpkg dependency](http://askubuntu.com/questions/252777/how-can-i-resolve-dpkg-dependency)
* [package dbus is not configured yet](http://askubuntu.com/questions/202321/package-dbus-is-not-configured-yet)
* [dpkg - E:Internal error during update/install](http://askubuntu.com/questions/266450/how-to-fix-e-internal-error-no-file-name-for-libc6)
* [dpkg error code](http://askubuntu.com/questions/597543/dpkg-error-code)
```
#!/bin/bash
# instructions mostly from Digital Ocean tutorial
# https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
# Update linux box
sudo apt-get update
# get and install the latest distro-stable version of nodejs
sudo apt-get install nodejs