Launch options: -novid -high -nod3d9ex1 -nojoy -threads 4 -tickrate 128
4/3 on 16/9 screen: m_yaw = ( (4/3) / (16/9) ) * 0.022 = 0.0165
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| /* Vedant Misra (vedantmisra.com) (github.com/vedant) | |
| * | |
| * Script for exporting Google Keep note files. | |
| * | |
| * This does not handle attachments or checklists, only note files. Downloads | |
| * each note to a .txt file named for the note's title. | |
| * | |
| * To use this, go to https://drive.google.com/keep/ and wait for the page to | |
| * fully load all of your saved notes; scroll to the bottom to confirm they're | |
| * loaded. Then paste the below in your URI bar, go to the start of the line, |
| plugins { | |
| id "java" | |
| id 'org.hidetake.ssh' version '0.4.5' | |
| } | |
| sourceCompatibility = '1.8' | |
| targetCompatibility = '1.8' | |
| def wpilibDir = System.env['HOME'] + '/wpilib/java/current' |
| "foo" | Set-Content helloworld.txt | |
| hg add helloworld.txt | |
| hg commit -m "added helloworld" | |
| (Measure-Command { hg log -G -l 5 }).TotalSeconds |
| ///////// ARMA3 Config CSV EXPORT | |
| ///////// Usage: [name,CfgPatches name] | |
| ///////// Usage: [name] to export bis stuff | |
| ///////// Usage: Paste everything below in the debug console and run it (or exec as script) | |
| ///////// ToDo: Filter weapon variants (with sights etc) | |
| private ["_CfgPatches","_configPath","_collectionName","_getClass","_out","_wepsEx","_itemsEx","_magsEx","_backEx","_weapons","_backpacks","_magazines","_glasses","_configName","_picture","_parents","_type","_classname","_mags","_mass","_capacity","_armor","_passthrough","_append","_ammo"]; | |
| _CfgPatches = false; | |
| _configPath = ""; |
Launch options: -novid -high -nod3d9ex1 -nojoy -threads 4 -tickrate 128
4/3 on 16/9 screen: m_yaw = ( (4/3) / (16/9) ) * 0.022 = 0.0165
| if isServer then { //only run on server | |
| addMissionEventHandler ["HandleDisconnect",{ //add an event to save data on player disconnect | |
| _uids = profileNamespace getVariable ["#MOSES#uids",[]]; //get all uids for players with saved positions | |
| _idx = _uids find _uids; //get the "index" of the uid in the array | |
| if (_idx == -1) then { //if uid not in list | |
| _idx = _uids pushBack _uids; //add it and store new index | |
| profileNamespace setVariable ["#MOSES#uids",_uids]; //set uids again, a new one was added | |
| }; | |
| _positions = profileNamespace getVariable ["#MOSES#lastPositions",[]]; //get saved positions | |
| _directions = profileNamespace getVariable ["#MOSES#lastDirections",[]]; //get saved directions |
| import cv2 | |
| import numpy as np | |
| import time | |
| import livestreamer | |
| # use live streamer to figure out the stream info | |
| streams = livestreamer.streams("http://www.twitch.tv/inostupid") | |
| stream = streams['best'] | |
| # open our out file. | |
| fname = "test.mpg" |
| type Type = | |
| | String of int | |
| | Guid | |
| | Date | |
| | Bool | |
| | Integer | |
| | Enum of name : string | |
| type Property = | |
| { Name : string |