(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <br> | |
| <div id='level'> | |
| <h1 style="text-align:center">planetesimals</h1> | |
| <div id='planet' onclick="planetesimals()"> | |
| <p>click to begin</p> | |
| <br> | |
| <p>move: WASD / arrows</p> | |
| <br> | |
| <p>fire: spacebar</p> | |
| </div> |
| #!/bin/bash | |
| # ------------------------------------------------------------------ | |
| # Git Daily Scrum (stand-up meeting) helper. | |
| # | |
| # The script helps you remember what you did last time and facilitates | |
| # writing daily log for remote teams. Be aware that it assumes that | |
| # meetings are conducted at the same time every day. | |
| # | |
| # Installation: | |
| # 1. Place the script in some folder, e.g. your home: |
| @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) |
| $(document).ready(function() { | |
| $("button.remove").on('click', function(e){ | |
| e.preventDefault(); | |
| if ( ! confirm('Are you sure?')) { | |
| return false; | |
| } | |
| var action = $(this).data("action"); | |
| var parent = $(this).parent(); | |
| $.ajax({ | |
| type: 'delete', |
| /* | |
| Exemples : | |
| <a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
| */ | |
| (function() { | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* Entity Interpolation | |
| this code occurs within the draw loop for an entity | |
| this.x and this.y represent the most recently received server position of | |
| the entity -- though i don't ever intend to use it for drawing | |
| when an update is received (roughly every 50ms in my particular game) this.x and this.y get | |
| pushed into previousState.x and previousState.y | |
| i also continue sloppily onwards to previousPreviousState.x, but I've removed that code | |
| // ArrayPrefs2 v 1.3 | |
| using UnityEngine; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class PlayerPrefsX | |
| { | |
| static private int endianDiff1; |
| // a fat hitbox around the player considered the 'relevant' area for a collision | |
| var hitArea = new AABB({x: player.x, y: player.y}, { x: 54, y : 54}) | |
| var actualHitArea = new AABB({x: player.x, y: player.y}, { x: 36, y : 36}) | |
| // how behind the player is, in server time | |
| var delay = player.ping + (1000 / player.tickRate) | |
| var tickLength = 1000 / TICKS_PER_SECOND | |
| var ticksAgo = Math.floor(delay / tickLength) | |
| var tickPortion = (delay % tickLength) / tickLength |