- A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
- lengths are in any unit (ex: pixels)
- code snippets are in JavaScript
angleRad = angleDeg * Math.PI / 180;
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <script src="https://unpkg.com/three"></script> | |
| <script | |
| src="https://unpkg.com/three/examples/js/loaders/GLTF2Loader.js" | |
| ></script> | |
| <script src="script.js" defer="defer"></script> | |
| </head> |
| // 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } |
| // Unity C# Cheat Sheet | |
| // I made these examples for students with prior exerience working with C# and Unity. | |
| // Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
| 2d camera in canvas: | |
| http://stackoverflow.com/questions/16919601/html5-canvas-camera-viewport-how-to-actally-do-it | |
| Codeincomplete series on javascript games: | |
| http://codeincomplete.com/games/ | |
| Coding Math: | |
| http://www.codingmath.com/ | |
| Mary Rose Cook codes a Canvas game live in 30 minutes: |
| using UnityEngine; | |
| using System.Collections; | |
| public class TerrainGenerator : MonoBehaviour { | |
| public Texture2D grassTexture; | |
| public Texture2D rockTexture; | |
| void Start() |
Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)
Here are the tools we’ll be using to create the bot —
| @echo off | |
| echo Uninstalling KB3075249 (telemetry for Win7/8.1) | |
| start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart | |
| echo Uninstalling KB3080149 (telemetry for Win7/8.1) | |
| start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart | |
| echo Uninstalling KB3021917 (telemetry for Win7) | |
| start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart | |
| echo Uninstalling KB3022345 (telemetry) | |
| start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart | |
| echo Uninstalling KB3068708 (telemetry) |
Table of Contents generated with DocToc