Template tags for base directory path importing.
If you are using import
syntax, consider something like babel-plugin-module-alias
#!/bin/bash | |
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
############################################### | |
# To use: | |
# wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
echo "*****************************************" |
/* jshint ignore:start */ | |
// Complete the questions below and save the file as first-last.js | |
// Question 1. | |
// Looking at the loop below, we expect the output to be 0 through 4. However, | |
// the loop below will output the value "5" five times. Fix it. | |
for (var i = 0; i < 5; ++i) { |
# http://stackoverflow.com/questions/9864728/how-to-get-git-to-clone-into-current-directory | |
git clone your-repo tmp && mv tmp/.git . && rm -rf tmp && git reset --hard |
Template tags for base directory path importing.
If you are using import
syntax, consider something like babel-plugin-module-alias
#cloud-config | |
# Configures a basic Ubuntu box. | |
# * Installs a few common packages | |
# * Disables root login | |
# * Disables password login | |
# * Creates a user in the sudo, www-data groups | |
# | |
# Follow the log by ssh-ing in and running: `tail -f /var/log/cloud-init-output.log` | |
apt_update: true | |
apt_upgrade: true |
I hereby claim:
To claim this, I am signing this object:
// @ts-check | |
const canvas = document.querySelector("canvas"); | |
const ctx = canvas.getContext("2d"); | |
// Utility Functions | |
const clamp = (value, min, max) => Math.min(Math.max(value, min), max); | |
// https://developer.mozilla.org/kab/docs/Games/Techniques/2D_collision_detection |