This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem -Path "Cert:\LocalMachine\Remote Desktop" | |
| # Read-Host -Prompt "Press Enter to exit" | |
| $seconds = 60*60 | |
| Write-Host "Exit in $seconds seconds" | |
| Start-Sleep @seconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Tutorial: Lead | |
| // Destroy the enemy ship. Its position is given by the "target" function and velocity by the | |
| // "target_velocity" function. Your ship is not able to accelerate in this scenario. | |
| // | |
| // This is where the game becomes challenging! You'll need to lead the target | |
| // by firing towards where the target will be by the time the bullet gets there. | |
| // | |
| // Hint: target() + target_velocity() * t gives the position of the target after t seconds. | |
| // | |
| // You can scale a vector by a number: vec2(a, b) * c == vec2(a * c, b * c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0eNrNWVtu4zYU3UrAz0Ia6GHJDyAF+lX0Y1YwMARaZmwiEqkhKSdGkAV0H11ZV9JL6i1LtiUHxWCADC2Rh/fNw6sPtEtykgnKFNp8IBpzJtHmxweS9MBwop8xnBK0QYLveMaFQp8WomxP3tHG/bQGJmIpSbpLKDvYKY6PlBHbay3yPrcWIkxRRUmxlflxjlie7ogAVKvekvzMiVRE2PER/kcWyriEdZzp7QDL/xZY6Iw2trf4FsAW5YLohSawSupZksR6QbFTJbeF6hmdp+W+Mc8y2DRLsCKw6c8cJyAgvGBcpKCrBTPSDAusOMiLns2DXFtwGXxu4Z+2S08rr0bf5cmrTZkkAiS4phOMhpD8GknmO6mwWXsBY1co7hDGosbYk5jutYV5uqPMaHSJ5ZdYjrHynorCqAYHIkYJnkQ7csQnqg3yUYFG8G5PS/N/oPYvMPsLFeCqJnzUOdMCnahQuTFypaWZYROIJR1GHdP/jnQ08VxluerH7d142Tky7oteBE8jygALbV5wIol25YD1glakMPAAUzfMV7vU7RvQ9YYt2ITtvBDGsORE7EzwU+HeMoEmxHKgNa+StgbOIL2/ErkVzTAPH8ijgItWor28PC5gcKUczYR0nZbShCRz8Pw2XuN3CasSO8Fp9oB4jbexoOqYEkXjboRPQPbayP71ujMXtvG5JAlkC/8i3FuJPhc3bNKJv4ER5BtVUI0mAbptwGUDKPhB4DTFu4TYMiP4lTwi6apxGJVwIJ7tDDOSzEf0mlhVAlNmQ9pn8zX3mlgFtMQuy/80PKcN6HcB46MR8lFY32mVkQxTYBc4fp2vt9+YMcvTBwzoN6GTwxNxEDBnb+9IMrEgrdo1uFVBhtjg/OLuXwP2HwAOW/6Jz3EyPWuAiGjjZfD8O2Td0x/srECsw9P3Qjw0wibCm9W2zye8MTYxQsca3B4jm0nBgJAAzPR1HFh1QVc3yEYVb5uO0xY7YkS9cfFq9BFkjzZK5ES7ghBW0bieyJdrzLR6kUb4HPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local handler = require("event_handler") | |
| handler.add_lib(require("freeplay")) | |
| if script.active_mods["space-age"] then | |
| handler.add_lib(require("space-finish-script")) | |
| else | |
| handler.add_lib(require("silo-script")) | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let t = { "KB":1, "MB":1000}; | |
| function c(a,b) | |
| { | |
| return a.size-b.size; | |
| } | |
| $('.library-container').map( function(cb,el,index){ | |
| var c31 = el.children[3].children[1]; | |
| if (!c31){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import hashlib | |
| print('cwd',os.getcwd()) | |
| def hashFile(f): | |
| return hashlib.sha224(open(f,'rb').read()).hexdigest() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import os | |
| import threading | |
| import hashlib | |
| import shutil | |
| import winsound | |
| quickSaveFileName = 'quicksave.fos' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import math | |
| def r(v): | |
| return random.randint(1, v) | |
| def good(): | |
| return [r(12),r(12),r(2)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Alan Baines | |
| import os.path | |
| import os | |
| import threading | |
| import hashlib | |
| import shutil | |
| import winsound | |
| import time | |
| import glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){ | |
| window.__iwm = true; | |
| const e = document.querySelector("#movie_player > div.html5-video-container > video"); | |
| const v = e.volume; | |
| const n = v < 0.015 ? 0.05 : v - 0.01; | |
| e.volume = n; | |
| if (!window.__kv) { | |
| console.clear(); | |
| e.addEventListener("volumechange", function(){ | |
| document.querySelector("#movie_player > div.html5-video-container > video").volume = window.__kv; |
NewerOlder