This file contains 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
open System | |
//leaderboard #1 | |
let leaderboard1 = | |
let ln = System.Console.In.ReadLine //;; | |
[1..(int (ln()))] |> List.map (fun x-> ln().Split([|' '|]) |> Array.map int |> Array.reduce (+)) |> List.iter System.Console.WriteLine | |
//leaderboard #2 | |
let leaderboard2 = |
This file contains 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
//above is inline code from filesize.js | |
function MODPACK_SIZE(column, targetColumn, name) { | |
var sh = SpreadsheetApp.getActiveSheet(); | |
var data = sh.getDataRange().getValues(); | |
var iStart = -1; | |
var iEnd = data.length; | |
// Find start |
This file contains 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
/* 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, |
This file contains 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
/* | |
================================================================================ | |
DESCRIPTION: | |
Activates DAC zones and sends all units within to attack a certain location. | |
AUTHOR: | |
Nife | |
PARAMETERS: |
This file contains 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
function UpdateToBranch { | |
$return = hg branches | Select-String $args | |
Write-Host $return | |
if (($return | Measure-Object).Count -eq 1) { | |
'Updating to branch...' | |
$line = $return.ToString().Trim() | |
$line = $line -replace " ([0-9]*?):(.*?)$", "" |
This file contains 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
///////// XML & CSV EXPORT | |
///////// Usage: [name,CfgPatches name] | |
///////// Usage: [name] to export bis stuff | |
///////// Usage: Paste everything below in the debug console and run it | |
_CfgPatches = false; | |
_configPath = ""; | |
_collectionName = "test"; | |
if(count [] > 1) then | |
{ |
This file contains 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
_vm = [] execVM "buildTranslationData.sqf"; | |
waitUntil {scriptDone _vm}; | |
//TODO LIST | |
/* | |
Soon: | |
Attempt to build CfgPatches entries for legacy mods | |
Build CfgMagazines based upon a list of all legacy magazines used in the below CfgWeapons array |
This file contains 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
//Written by beta and Krause for ACRE, converted to TFAR by JonBons | |
//AI can hear you talk on TFAR | |
//version 2 | |
private ["_nearAI", "_revealAmount", "_sideUnit", "_nearAISingle", "_sideAI", "_sideUnits", "_inContact", "_enemyInContact", "_talkTime", "_dist"]; | |
_talkTime = 0; | |
b_hasRadioCheck = | |
{ |
This file contains 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
ffmpeg.exe -i input_video.mp4 -i replacement_audio.m4a -vcodec copy -acodec copy -map 0:0 -map 1:0 output.mp4 |
This file contains 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
$nextTagID = 0; | |
Function getTag() { | |
$global:nextTagID += 1; | |
return 'foo' + $global:nextTagID | |
} | |
Function makeRandom($length){ | |
$text = ''; | |
for($i=1; $i -le $length; $i++){ | |
$text += [char](get-random -Minimum 65 -Maximum 90); |