Skip to content

Instantly share code, notes, and snippets.

PifyZ

Block or report user

Report or block PifyZ

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View canvas.nim
import dom
type
Canvas* = ref CanvasObj
CanvasObj {.importc.} = object of dom.Element
CanvasContext2d* = ref CanvasContext2dObj
CanvasContext2dObj {.importc.} = object
font*: cstring
globalAlpha*: float
View Decoder.elm
-- JSON correspondant (à parser) :
-- {
-- "keywords": [
-- { "uid": 6, "url": "...", "keyword": "..." },
-- { "uid": 55, "url": "...", "keyword": "..." },
-- { "uid": 462, "url": "...", "keyword": "..." }
-- ],
--
-- "records": {
-- UN_TIMESTAMP: [
View test.nim
#
# Portage pur
#
type
lhMutex = object
id: int64
lhWindow = object
id: int64
x: int
View monopoly.nim
import tables
type
GroupName = enum
None
Purple
LightBlue
Pink
Orange
Red
View projects-manager.elm
import Array
import String
import Html.App as Html
import Json.Decode as Json
import Array exposing (Array)
import Html.Events exposing (keyCode, on, onClick, onInput, targetValue)
import Html exposing (..)
View physics.sk
###
const map = [
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ],
[ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
[ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ],
View build.sh
shopt -s globstar
skewc src/**/*.sk --output-file=app.js --target=js --message-limit=0
View physics.sk
class Point {
var x double
var y double
}
namespace Game {
const GRID = 16
var hero Entity
}
View physics.sk
class Vector2D {
var x double
var y double
def new {
self.x = 0
self.y = 0
}
def new(x double, y double) {
View build.sh
rock --libpath=libhang-c/src --incpath=libhang-c/include -lhang
You can’t perform that action at this time.