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
# pass --simulate to avoid actual deletion | |
# pass --donotprompt to delete without prompting | |
function rmbHgClosed() { | |
option=$1 | |
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ "$current_branch" != "master" ]; then | |
echo "WARNING: You are on branch $current_branch, NOT master." | |
fi | |
echo "Fetching remote branches..." | |
remote_branches=$(git branch -r | grep -v '/master$' | grep -v "/$current_branch$") |
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
public class FontAtlas: NSObject, NSSecureCoding { | |
public static var supportsSecureCoding: Bool { get { return true } } | |
static let atlasSize: Int = 2048 // 4096 runs out of mem... | |
var glyphs : [GlyphDescriptor] = [] | |
let parentFont: UIFont | |
var fontPointSize: CGFloat | |
let textureSize: Int | |
var textureData: [UInt8] = [] | |
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
function rmb { | |
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ "$current_branch" != "master" ]; then | |
echo "WARNING: You are on branch $current_branch, NOT master." | |
fi | |
echo "Pruning branches no longer on origin..." | |
git remote prune origin | |
echo "Fetching merged branches..." | |
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$") | |
local_branches=$(git branch --merged | grep -v 'master$' | grep -v "$current_branch$") |
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
PushRenderBuffer(); | |
PushFrameBuffer(); | |
// Create the renderbuffers and framebuffers | |
glGenRenderbuffers(ResourceSky::NUM_BUFFERS, g_res->renderBuffer); | |
glGenFramebuffers(ResourceSky::NUM_BUFFERS, g_res->frameBuffer); | |
for (int i = 0; i < ResourceSky::NUM_BUFFERS; ++i) { | |
glBindRenderbuffer(GL_RENDERBUFFER, g_res->renderBuffer[i]); | |
glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8_OES, g_res->width[i], g_res->height[i]); |
NewerOlder