- System Settings -> Mouse & Touchpad -> Touchpad -> Tap to click -> (Toggle on)
- Connect to additional WiFi access points
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update | |
sudo apt-get upgrade | |
# Install needed tools | |
sudo apt-get install build-essential | |
sudo apt-get install chromium-browser | |
sudo apt-get install vim | |
sudo apt-get install curl | |
sudo apt-get install python | |
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh |
# Copyright (c) 2017 Make Me A Sandwich Developers | |
# MIT License (See LICENSE.txt) | |
# Inspiration: https://xkcd.com/149/ | |
# Usage: | |
# $ make me a sandwich | |
# What? Make it yourself. | |
# | |
# $ sudo make me a sandwich |
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
// Copyright Joyent, Inc. and other Node contributors. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a | |
// copy of this software and associated documentation files (the | |
// "Software"), to deal in the Software without restriction, including | |
// without limitation the rights to use, copy, modify, merge, publish, | |
// distribute, sublicense, and/or sell copies of the Software, and to permit | |
// persons to whom the Software is furnished to do so, subject to the | |
// following conditions: |
Here are some experiments creating new objects in JavaScript... with regular functions and generator functions.
Why?
I've been playing around converting regular functions into generator functions, and I recently ran into a problem: generators are not "new-able". You can't create new objects when the constructor is a generator.
Some background:
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
margin: 30px; | |
} | |
</style> | |
</head> | |
<body> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="selenium.base" href="http://www.washingtontimes.com/" /> | |
<title>New Test</title> | |
</head> | |
<body> | |
<table cellpadding="1" cellspacing="1" border="1"> |
#include <Servo.h> | |
Servo head; | |
Servo leftArm; | |
Servo rightArm; | |
int headPosition = 90; | |
int leftArmPosition = 90; | |
int rightArmPosition = 90; |
#include <Servo.h> | |
Servo head; | |
Servo leftArm; | |
Servo rightArm; | |
int headPosition = 90; | |
int leftArmPosition = 90; | |
int rightArmPosition = 90; |