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
float Out = MaterialExpressionNoise( | |
DERIV_BASE_VALUE(Position), // Position | |
Scale, // Scale | |
1.00000000, // Quality | |
0.00000000, // Function | |
bTurbulence, // bTurbulence | |
Levels, // Levels | |
0.00000000, // OutputMin | |
1.00000000, // OutputMax | |
LevelScale, // LevelScale |
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
using { /Fortnite.com/Devices } | |
using { /Verse.org/Simulation } | |
using { /UnrealEngine.com/Temporary/Diagnostics } | |
item_roller_device := class(creative_device): | |
@editable RollTime:float = 5.0 | |
@editable PickupTimeout:float = 5.0 | |
@editable RollCycleDelay:float = 0.1 | |
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
let prev_tab_id = {} | |
async function onClick(tab) | |
{ | |
try { | |
let current_tab = tab.id; | |
let current_window = tab.windowId; | |
// Find all the gmail tabs | |
var tabs = await browser.tabs.query({ windowId: current_window, url: "*://mail.google.com/*" }); | |
if ( tabs.length == 0 ) |
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
def NTremix( tensor, target_dims, align='left', squeeze=True ): | |
# remove extra dimensions | |
if ( squeeze ): | |
tensor = tensor.squeeze() | |
# add missing dimensions | |
dim0 = tensor.names[0] | |
target_set = set(target_dims) | |
missing = [(dim0,tensor.size(dim0))] |
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
'use strict'; | |
const mkdirp = require('mkdirp'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const readline = require('readline').createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); |
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
const fs = require( 'fs' ) | |
console.log( `Make sure OVRService has been stopped and Oculus is closed before running this!` ) | |
let filename = process.env.LOCALAPPDATA + '\\Oculus\\DeviceCache.json'; | |
console.log( `Opening ${filename}.` ) | |
let file = fs.readFileSync( filename, {encoding: 'utf8'} ) | |
let json = JSON.parse(file) |
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
{ | |
"mats": { | |
"FUEL1": { | |
"Name": "Carbon", | |
"Symbol": "C", | |
"Icon": "TEXTURES/UI/FRONTEND/ICONS/U4SUBSTANCES/SUBSTANCE.FUEL.1.DDS", | |
"Color": "BA3730" | |
}, | |
"FUEL2": { | |
"Name": "Condensed Carbon", |
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 Foo( Name ) | |
return function( Table ) | |
; Construct | |
return something | |
end | |
end | |
;Called with: | |
Foo 'Bar' {} |
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
HotKey, IfWinActive, Fortnite | |
; Fortnite Binds | |
Fortnite.RegisterKey( "1", "MeleeSlotKey" ) | |
Fortnite.RegisterKey( "2", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "3", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "4", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "z", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "x", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "q", "BuildKey" ) |
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
// Advent of Code 2017 - Day 3 Part 2 | |
// by @sclark39 | |
var add = ( a, b ) => ([ a[0] + b[0], a[1] + b[1] ]) | |
var turn = (a) => ( a[0] == 0 ? [ -a[1], 0 ] : [ 0, a[0] ] ) | |
function buildSpiral(input) | |
{ | |
var spiral = [ [1] ] | |
spiral.get = ( c ) => ( spiral[c[0]] && spiral[c[0]][c[1]] ) |
NewerOlder