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
from kivy.clock import Clock | |
from kivy.core.window import Window | |
from kivy.uix.scatter import ScatterPlane | |
class Viewport(ScatterPlane): | |
def __init__(self, **kwargs): | |
kwargs.setdefault('size', (1920, 1080)) | |
kwargs.setdefault('size_hint', (None, None)) | |
kwargs.setdefault('do_scale', False) |
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
private void initialize() { | |
Coord.expandPoolTo(WIDTH+3, HEIGHT+3); | |
// Initialize the heightmap generator | |
ModuleFractal heightFractal = new ModuleFractal (ModuleFractal.FractalType.FBM, | |
ModuleBasisFunction.BasisType.GRADIENT, | |
ModuleBasisFunction.InterpolationType.QUINTIC); | |
heightFractal.setNumOctaves(terrainOctaves); | |
heightFractal.setFrequency(terrainFrequency); | |
heightFractal.setSeed(CommonRNG.getRng().between(0, Integer.MAX_VALUE)); | |
ModuleFractal ridgedHeightFractal = new ModuleFractal (ModuleFractal.FractalType.RIDGEMULTI, |
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
var deleteAllGroupMembers = (function () { | |
var deleteAllGroupMembers = {}; | |
// the facebook ids of the users that will not be removed. | |
// IMPORTANT: add your own facebook id here so that the script will not remove yourself! | |
var excludedFbIds = ['1234','11223344']; // make sure each id is a string! | |
var usersToDeleteQueue = []; | |
var scriptEnabled = false; | |
var processing = false; | |
deleteAllGroupMembers.start = function() { |
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
<# | |
.SYNOPSIS | |
Downloads VirtualBoyGo source code | |
.DESCRIPTION | |
Gathers all dependencies and places them in the correct folders! | |
.NOTES | |
Author : Benjamin McLean mclean.ben@gmail.com | |
.LINK | |
https://github.com/CidVonHighwind/VirtualBoyGo | |
#> |
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
[alias] | |
apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0r git rm --cached |
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
// Pixelated font shader by lox9973 | |
// It is a cutout shader, using alpha blending for 1 pixel antialiasing on the edges. | |
// Intended use is "3D Text" on an opaque object like a sign. | |
Shader "UI/PixelFont" { | |
Properties { | |
_MainTex ("Font Texture", 2D) = "white" {} | |
_Color ("Text Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
// Below Transparent queue. Renders after the skybox, but writes to depth. |
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
@echo off | |
setLocal EnableDelayedExpansion | |
:newgame | |
cls | |
echo TIC-TAC-TOE | |
echo Written by Benjamin McLean | |
echo. | |
echo Controls: | |
echo|set /p="7 | 8 | 9" | |
echo. |
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
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* Tileable 3D version, preliminary release. | |
* Could probably use further optimization. | |
* | |
* w6, h6, and d6 are each 1/6 of the repeating period. | |
* for x, y, z respectively. If w6 = 2, h6 = 2, d6 = 2, | |
* then the noise repeats in blocks of (0,0,0)->(12,12,12) |
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
$set(_year,$left($if2(%originaldate%,%date%),4)) | |
$if(_year,%_year% ) | |
%album% | |
$if($and(%releasetype%,$not($find(%releasetype%,album))), \(%releasetype%\)) | |
($if2(%albumartist%,%artist%)) | |
$if($eq($upper(%_extension%),MP3),, $upper(%_extension%)) | |
/ | |
$if($gt(%totaldiscs%,1),$if(%discsubtitle%,CD$num(%discnumber%,$len(%totaldiscs%)) %discsubtitle%/)$num(%discnumber%,$len(%totaldiscs%))-,) | |
$num(%tracknumber%,$if($gt($len(%totaltracks%),2),$len(%totaltracks%),2)) %title% | |
$if($find(%albumartist%,Various), \(%artist%\)) |
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
@ECHO OFF | |
cd %~dp0 | |
for /f "eol=: delims=" %%F in ('dir /b /a-d *.mka ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -af "pan=5.1|FL=FL|FR=FR|BL=SL|BR=SR" "%%F.flac" ) | |
@PAUSE |
OlderNewer