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
| -- | |
| This format is meant to be very easy to parse, flexible and deterministic. A | |
| section may only be defined once. If multiple are defined using the same | |
| identifier then only the first will be parsed. | |
| Sections are marked by lines beginning with -- <identifier>. Blank identifiers | |
| or ones that aren't searched for will be completely ignored and may contain | |
| anything. Spaces, Tabs, and Newlines (LF, CRLF) are ignored. | |
| Note: the version tag is _required_ to guarantee compatibility - if you don't |
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
| return { | |
| -- loadstring with function calls disabled. Useful for config files. | |
| safe_load = function(data) | |
| local f = assert(loadstring("return (" .. data .. ")")) | |
| local count = 0 | |
| debug.sethook(function() | |
| count = count + 1 | |
| if count >= 3 then | |
| error "cannot call functions" | |
| end |
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 math | |
| class Stats: | |
| def __init__(self, base_stats, aptitude): | |
| self._base_stats = dict(base_stats) | |
| self._aptitude = dict(aptitude) | |
| self.level(1) | |
| def __str__(self): | |
| stats = self._stats |
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 python2 | |
| """ | |
| .SM rating fixer thingy! | |
| ======================== | |
| Usage: | |
| Just put the file in the folder with the things you need fixed and run it! | |
| You can also give it an argument on the command line to specify the path. |
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 merge(t1, t2) | |
| for k,v in pairs(t2) do | |
| if type(v) == "table" then | |
| if type(t1[k] or false) == "table" then | |
| tableMerge(t1[k] or {}, t2[k] or {}) | |
| else | |
| t1[k] = v | |
| end | |
| else | |
| t1[k] = v |
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
| #extension GL_OES_standard_derivatives : enable | |
| precision highp float; | |
| varying vec2 v_texCoord; | |
| uniform sampler2D texture0; | |
| const float distancethreshold = 0.5; | |
| float aastep(float threshold, float dist) | |
| { | |
| float afwidth = 0.5 * length(vec2(dFdx(dist), dFdy(dist))); | |
| return smoothstep(threshold - afwidth, threshold + afwidth, dist); |
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
| { | |
| "meta": { | |
| "title": "Connect", | |
| "artist": "ClariS", | |
| "genre": "J-Pop", | |
| "version": 1, | |
| "-sm-banner": "banner.png", | |
| "-sm-background": "background.png" | |
| }, | |
| "timing": { |
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
| CC=mipsel-gcw0-linux-uclibc-gcc | |
| CXX=mipsel-gcw0-linux-uclibc-g++ | |
| LIBS=-lGLESv2 -lEGL -Iglm | |
| FLAGS=-Wall -Wextra -fno-strict-aliasing -Og -ggdb -std=c++11 -Wno-missing-field-initializers | |
| OUT=bin/game.bin | |
| FILES=src/*.cpp src/stb_image.c | |
| PACKAGE=gcw-test.opk | |
| all: | |
| @if ! test -d bin; then mkdir bin; fi; |
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
| [ScreenSelectMusic] | |
| MusicWheelX=SCREEN_CENTER_X | |
| MusicWheelY=SCREEN_CENTER_Y | |
| MusicWheelOnCommand=draworder,DrawOrder.Overlay;SetDrawByZPosition,true;fov,90 | |
| [MusicWheel] | |
| ItemWidth=math.max(math.ceil(SCREEN_WIDTH/3), 220) | |
| ItemHeight=55 | |
| ItemOffset=0 | |
| ItemTransformFunction=function(self,offsetFromCenter,itemIndex,_numItems) \ |
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
| /* | |
| * Copyright 2001-2004 Unicode, Inc. | |
| * | |
| * Disclaimer | |
| * | |
| * This source code is provided as is by Unicode, Inc. No claims are | |
| * made as to fitness for any particular purpose. No warranties of any | |
| * kind are expressed or implied. The recipient agrees to determine | |
| * applicability of information provided. If this file has been | |
| * purchased on magnetic or optical media from Unicode, Inc., the |