This file contains hidden or 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
#!/usr/bin/env python3 | |
# | |
# Builds the SDL_shadercross tool and installs it locally. | |
# | |
# Prerequisites: | |
# Python 3 | |
# Git | |
# C++ compiler | |
# CMake | |
# Ninja |
This file contains hidden or 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 bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}; | |
use bevy::prelude::*; | |
fn main() { | |
let mut app = App::new(); | |
app.add_plugins(( | |
DefaultPlugins | |
.set(ImagePlugin::default_nearest()) | |
.set(WindowPlugin { | |
primary_window: Some(Window { |
This file contains hidden or 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 | |
REM Change this to where you want the files backed-up to... | |
REM (Always put a backslash at the end so xcopy knows you want to create a directory) | |
set dst="%USERPROFILE%\Backups\Minecraft Dungeons\" | |
set srcdir="%LOCALAPPDATA%\Packages\Microsoft.Lovika_8wekyb3d8bbwe\LocalCache\Local\Dungeons" | |
if exist %srcdir% goto find_subdir | |
set srcdir="%LOCALAPPDATA%\Dungeons" | |
if exist %srcdir% goto find_subdir |
This file contains hidden or 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
#!/usr/bin/python | |
# | |
# Bump build number if source files have changed, writing the version and build | |
# number to source files as well as updating one or more info.plist files. | |
# | |
# usage: bump_build_number.py version-file version-impl-file version-header-file plist-file [ ... plist-file ] | |
# | |
import sys, os, subprocess, re |
This file contains hidden or 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 "PrefabPool.h" | |
#pragma mark - Private Interface | |
@interface PrefabPool () | |
{ | |
NSUInteger _nextIndex; | |
NSMutableArray *_pool; | |
} |
This file contains hidden or 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
#!/bin/sh | |
dobuild=1 | |
docopy=1 | |
doclean=1 | |
version=1.6.9 | |
srcdir=libpng-${version} | |
srcfile=${srcdir}.tar.gz | |
srctarball=http://sourceforge.net/projects/libpng/files/libpng16/${version}/${srcfile}/download | |
outdir=$(cd ../external-deps/png; pwd) |
This file contains hidden or 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
--- Source/cpptinkering ‹master*➔ ?› » make | |
clang++ -DDEBUG=1 -g -Wall -std=c++11 -stdlib=libc++ -o setcwd setcwd.cpp -lstdc++ | |
--- Source/cpptinkering ‹master*➔ ?› » ./setcwd | |
Changing to directory '.' | |
This is a one. | |
This is line two. | |
This is line three. | |
--- Source/cpptinkering ‹master*➔ ?› » cd / | |
--- / » /Users/andy/Source/cpptinkering/setcwd | |
Changing to directory '/Users/andy/Source/cpptinkering' |
This file contains hidden or 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 <Foundation/Foundation.h> | |
#import <CoreServices/CoreServices.h> | |
int main(int argc, const char **argv) | |
{ | |
@autoreleasepool { | |
for (int i = 1; i < argc; i++) { | |
char *endp; | |
long value = strtol(argv[i], &endp, 10); | |
if (*endp == '\0') { |
This file contains hidden or 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
#!/usr/bin/env python | |
# | |
# Slice an image into the specified number of vertical slices. | |
# | |
# Usage: vslice.py [options] image output-path num-slices | |
# Use --help for a list of options. | |
# | |
# Andy Duplain <[email protected]> 26-Feb-2014 | |
# |
This file contains hidden or 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
$ clang -DDEBUG=1 -g -fobjc-arc -o rlsleep rlsleep.m -framework Foundation | |
$ ./rlsleep | |
2014-02-20 11:45:36.481 rlsleep[95410:707] Before 2014-02-20 11:45:36 +0000 | |
2014-02-20 11:45:37.475 rlsleep[95410:707] Tick | |
2014-02-20 11:45:38.476 rlsleep[95410:707] Tick | |
2014-02-20 11:45:39.475 rlsleep[95410:707] Tick | |
2014-02-20 11:45:40.475 rlsleep[95410:707] Tick | |
2014-02-20 11:45:41.475 rlsleep[95410:707] Tick | |
2014-02-20 11:45:42.476 rlsleep[95410:707] Tick | |
2014-02-20 11:45:43.476 rlsleep[95410:707] Tick |
NewerOlder