This is a SCRIPT-8 cassette.
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
/** | |
* Name: rconUtils | |
* Created by chris on 4/26/2017. | |
* Description: Sends a command to a Miscreated server and parses the response | |
* // RCON Steps | |
* --- 1 --- | |
* // Request: challenge | |
* // Response: uptime | |
* --- 2 --- | |
* // Request: md5(uptime:password) |
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
import vmsq from 'vmsq'; | |
import SourceQuery from 'sourcequery'; | |
const MASTER_SERVER = 'hl2master.steampowered.com:27011'; | |
export const getServer = (servers = []) => { | |
return new Promise((resolve, reject) => { | |
vmsq(MASTER_SERVER, vmsq.ALL, { | |
appid: 299740 | |
}) |
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
<?php | |
// Return JSON | |
header('Content-Type: application/json'); | |
error_reporting(0); | |
// Cache | |
require_once 'vendor/autoload.php'; | |
$longcache = new Gilbitron\Util\SimpleCache(); | |
$longcache->cache_path = 'cache/'; | |
$longcache->cache_time = 3600; |
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
""" | |
=================================== | |
Shaded & power normalized rendering | |
=================================== | |
The Mandelbrot set rendering can be improved by using a normalized recount | |
associated with a power normalized colormap (gamma=0.3). Rendering can be | |
further enhanced thanks to shading. | |
The `maxiter` gives the precision of the computation. `maxiter=200` should |
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
""" | |
@name: cryengine_setup.py | |
@author: Chris Sprance | |
@project: Miscreated | |
@description: Sets up an fbx from modo to be ready to export in maya | |
@instructions: Select top level group(s) hit button. fist bump | |
""" | |
import re | |
import maya.mel as mm |
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
import five, { Button } from 'johnny-five'; | |
const alpha: { [k: string]: string } = { | |
'.-': 'A', | |
'-...': 'B', | |
'-.-.': 'C', | |
'-..': 'D', | |
'.': 'E', | |
'..-.': 'F', | |
'--.': 'G', |
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
export default [ | |
'reallyReallyBadTestWord', | |
'5h1t', | |
'5hit', | |
'anal', | |
'ar5e', | |
'ass', | |
'ass-fucker', | |
'asses', | |
'assfucker', |
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
import modo | |
import lx | |
def get_selected_clip_filepath(): | |
scene = modo.Scene() | |
[clip] = scene.selectedByType(lx.symbol.sITYPE_VIDEOSTILL) | |
filepath = clip.channel("filename").get() | |
return filepath |
Requirements:
- Install Python2.7
- https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows
- Install GDAL-core Atlas/gdal-201-1600-core.msi
- Install GDAL-Python Atlas/GDAL-2.1.3.win32-py2.7.msi
- Add Program Files/GDAL to your System path Now, when running the GDAL command line, you have access to gdal2tiles.py.