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
using Godot; | |
using System; | |
/* | |
var timer = new LambdaTimer(() => GD.Print("hello timer!")); | |
AddChild(timer); | |
*/ | |
public class LambdaTimer : Timer { | |
private Action onTimeOutAction { get; } |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "shell", | |
"label": "Jai: Build & Run", | |
"command": "jai -quiet ${file} && ${fileDirname}${pathSeparator}${fileBasenameNoExtension}", | |
"group": "build", | |
"presentation": { | |
"revealProblems": "onProblem", |
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
local hashed = require('libs.hashed') | |
local _M = {} | |
local scripts = {} | |
-- NoMoreGlobalFunctionsInScripts | |
function _M.new() | |
local script = { |
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
tell application "Finder" | |
set randomimage to some file of folder ((path to home folder as string) & "Pictures") as string | |
end tell | |
tell application "System Events" | |
tell every desktop | |
set random order to false | |
set picture to randomimage | |
end tell | |
end tell |
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 simple sample game for Corona SDK. | |
http://coronalabs.com | |
Made by @SergeyLerg. | |
Licence: MIT. | |
]] | |
-- Don't show pesky status bar. | |
display.setStatusBar(display.HiddenStatusBar) |
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 { | |
aliceblue = {0.94117647058824, 0.97254901960784, 1}, | |
antiquewhite = {0.98039215686275, 0.92156862745098, 0.84313725490196}, | |
aqua = {0, 1, 1}, | |
aquamarine = {0.49803921568627, 1, 0.83137254901961}, | |
azure = {0.94117647058824, 1, 1}, | |
beige = {0.96078431372549, 0.96078431372549, 0.86274509803922}, | |
bisque = {1, 0.89411764705882, 0.76862745098039}, | |
black = {0, 0, 0}, | |
blanchedalmond = {1, 0.92156862745098, 0.80392156862745}, |
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
#!/bin/sh | |
base=$1 | |
convert "$base" -resize '29x29' -unsharp 1x4 "Icon-Small.png" | |
convert "$base" -resize '40x40' -unsharp 1x4 "Icon-Small-40.png" | |
convert "$base" -resize '50x50' -unsharp 1x4 "Icon-Small-50.png" | |
convert "$base" -resize '57x57' -unsharp 1x4 "Icon.png" | |
convert "$base" -resize '58x58' -unsharp 1x4 "[email protected]" | |
convert "$base" -resize '60x60' -unsharp 1x4 "Icon-60.png" | |
convert "$base" -resize '72x72' -unsharp 1x4 "Icon-72.png" | |
convert "$base" -resize '76x76' -unsharp 1x4 "Icon-76.png" |
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
// ### Content Helper | |
// | |
// *Usage example:* | |
// `{{content}}` | |
// `{{content words="20"}}` | |
// `{{content characters="256"}}` | |
// `{{content preview="true"}}` | |
// | |
// Turns content html into a safestring so that the user doesn't have to | |
// escape it or tell handlebars to leave it alone with a triple-brace. |
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
#!/bin/sh | |
ext=$1 | |
for f in $(find . -name "*@4x.$ext"); do | |
echo "Converting $f..." | |
convert "$f" -resize '50%' -unsharp 1x4 "$(dirname $f)/$(basename -s "@4x.$ext" $f)@2x.$ext" | |
done | |
for f in $(find . -name "*@2x.$ext"); do | |
echo "Converting $f..." | |
convert "$f" -resize '50%' -unsharp 1x4 "$(dirname $f)/$(basename -s "@2x.$ext" $f).$ext" | |
done |
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
local _M = {} | |
function _M.nextFrame(f) | |
timer.performWithDelay(1, f) | |
end | |
function _M.enterFrame() | |
for i = 1, #_M.enterFrameFunctions do | |
_M.enterFrameFunctions[i][1]() | |
end | |
end |
NewerOlder