Skip to content

Instantly share code, notes, and snippets.

@nvh
nvh / readme.txt
Created December 16, 2023 00:03
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@nvh
nvh / readme.txt
Created December 13, 2023 22:21
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@nvh
nvh / readme.txt
Created December 13, 2023 22:20
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@nvh
nvh / readme.txt
Created December 13, 2023 22:19
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@nvh
nvh / readme.txt
Created December 13, 2023 22:01
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@nvh
nvh / readme.txt
Created December 13, 2023 21:47
Untitled PuzzleScript Script
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
Button A
100000100011110000001110111100000000101111000010100000001001111000001011111110000010101111101000000000111111000001101111110000001011111000101110000010011111000000111111110000001010111010100000001001110000001011111110000010101111001011100000000110111000000111011111000000101010101100000010011111000000111111110000001010111010011110000001100111100000110101111000001010101011100000100111111000001111011110000010101110100111110000011000111100000001011111000000101010111100000001101111000000110111110000001010100001011110000000000111100000010101111000000010100111100000011000111000000101011111000000101000010101111000000001111110000001000111100000100001011110000000000111100000010101111000001010000101001111000000011111110000000001111100000000010111110000000001111100000001001111000000110000010001111000000111011111000000010111100000000101001111000000011111110000010001111100000100000000010111100000110111111000000101011110010000010001111000000111011110000000010111100001010000000100111100000001111111100000010101110100
import Foundation
class Animal: NSObject {
}
protocol Named {
init(name: String)
}
protocol AnimalSpecification {
@nvh
nvh / buttonToggle.coffee
Created July 18, 2016 07:35 — forked from joshuacrowley/buttonToggle.coffee
Simple toggle button setup for Framer.js
for button in sketch.headerBttn.children
button.states.add
off:
opacity: 0.5
on:
opacity: 1
button.onTap (event, layer) ->
others = _.without(sketch.headerBttn.children, layer)
for other in others
other.states.switch("off")
@nvh
nvh / SynchronizedValueContaining.swift
Created February 2, 2016 13:36
An example how to have a synchronised property in a protocol-oriented way
public protocol SynchronizedValueContaining: class {
typealias SynchronizedValueType
var _valueAccessorSerialQueue: dispatch_queue_t { get }
var _privateValue: SynchronizedValueType { get set }
}
public extension SynchronizedValueContaining {
var synchronizedValue: SynchronizedValueType {
get {
var v: SynchronizedValueType!