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
#target photoshop | |
// $.level = 2; | |
/* | |
* Script by Tomek Cejner (tomek (at) japko dot info) | |
* based on work of Damien van Holten: | |
* http://www.damienvanholten.com/blog/export-groups-to-files-photoshop/ | |
* | |
* My version adds support of nested layer groups, | |
* and exports single layers in addition to groups. |
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
REM My main disk | |
D: | |
REM Defold project | |
cd "D:\Defoldx86\branches\34041\2444\app" | |
REM Build with bob | |
java -jar "D:\Defoldx86\branches\34041\2444\app\tools\build\bob.jar" --archive --platform "armv7-android" --bundle-output "C:\Users\mattias\Desktop\builds" --debug distclean build bundle | |
REM Move to adb folder |
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
-- A timer module for Defold, supports a regular timer and a repeating timer, | |
-- timer fires its callback once, the repeating timer fire its callback until it is canceled | |
-- Locals | |
local M = {} | |
------------------------------------------------------------------------------ | |
function M.create() | |
local self = {} |
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
# Implementation of Brian Khuu's progress bar from http://stackoverflow.com/questions/3160699/python-progress-bar | |
# with some small tweaks to formatting | |
# | |
# Accepts a float between 0 and 1. Any int will be converted to a float. | |
# A value under 0 represents a 'halt'. | |
# A value at 1 or bigger represents 100% | |
# | |
# Usage | |
#for i in len(10): | |
# progressbar.update_progress((i+1)/len(10)) |
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
""" | |
MAYA 2016 Version | |
Hack for making custom animations in Defold, animate in Maya then export the animation as a curve. | |
The script will save every frame as a point on the curve, so try to use as few keys in maya as possible. | |
Set the "animate to" to 1 and the time to how ever long you want the animation to be. Something like below | |
go.animate("go", "position.x", go.PLAYBACK_LOOP_PINGPONG, 1, vmath.vector(transform_x), 5.0) | |
go.animate("go", "position.y", go.PLAYBACK_LOOP_PINGPONG, 1, vmath.vector(transform_y), 5.0) | |
""" |
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
-- Initiate it in your game.render_script by adding this to its init() | |
-- screeninfo.init(render.get_window_width(), render.get_window_height()) | |
local M = {} | |
local window_width | |
local window_height | |
local project_widht | |
local project_height |
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
return { | |
stds = { | |
defold = { | |
read_globals = { | |
"go", "gui", "msg", "url", "sys", "render", "factory", "particlefx", "physics", "sound", "sprite", "image", | |
"tilemap", "vmath", "matrix4", "vector3", "vector4", "quat", "hash", "hash_to_hex", "hashmd5", "pprint", | |
"iap", "facebook", "push", "http", "json", "spine", "zlib", "collectionfactory", | |
"__dm_script_instance__", "socket", "adtruth", "jit", "bit", "window", "webview", "profiler", "resource", | |
"collectionproxy", "label", "model", "timer", "zlib", "html5", "buffer", "crash", "bit32", | |
"RenderScriptConstantBuffer", "RenderScriptPredicate", "RenderScript", "GuiScript", "GuiScriptInstance" |
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
""" | |
Builder is built by wrapping adb and storing some data locally | |
I would recommend to add an alias to your ~.bash_profile to use it easier | |
alias builder="python3.5 ~/Documents/repo/builder/builder.py" | |
Usage: | |
builder.py [command] [arguments] | |
Available Commands: | |
build build [location of a project] | |
install install [path to APK] | |
uninstall uninstall [bundle id] |
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
""" | |
Converting Swedbanks exported excel document to a format readable by you need a budget. | |
""" | |
import csv | |
import os | |
import pandas as pd | |
bank_file = r"C:\Users\Jerakin\Desktop\Kontohistorik.xls" |
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 deftree | |
import os | |
import sys | |
def run_on_file(project_path, gui_file): | |
tree = deftree.parse(gui_file) | |
output = [] | |
output.extend(clean_textures(tree)) |
OlderNewer