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
key object; | |
default | |
{ | |
state_entry() | |
{ | |
llSetScale(llGetAgentSize(llGetOwner())); | |
llSensorRepeat("Target", "", ACTIVE|PASSIVE, 96.0, TWO_PI, 1.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
/* | |
More interesting interpolation functions to make life easier. | |
Rescale is a function which can interpolate a value between two different ranges. | |
Say you have a number which represents the position of a slider. | |
The slider has a start and end as well. | |
You want the slider to control a box between two locations. | |
So you could do the following: |
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 { promises as fs } from 'fs'; | |
import path from 'path'; | |
import puppeteer from 'puppeteer'; | |
import { PuppeteerScreenRecorder } from 'puppeteer-screen-recorder'; | |
const viewport = { | |
width: 512, | |
height: 512, | |
deviceScaleFactor: 1, | |
// isMobile: true, |
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
const RowStep = 14.39 | |
const ColumnStep = RowStep * 5/6; // 37.5; | |
const HexMax = ColumnStep * 4/3; | |
const HexMin = ColumnStep * 2/3; | |
const Rows = Math.ceil(100 / RowStep); | |
const Columns = Math.ceil(100 / ColumnStep); | |
function renderBestagons(t = 1) { | |
let polygons = []; | |
let r = Rows; |
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
module.exports = { | |
config: { | |
fontSize: 16, | |
fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
cursorColor: 'hsla(215, 100%, 90%, 1)', | |
cursorShape: 'BEAM', | |
foregroundColor: 'white', | |
backgroundColor: 'hsla(0, 0%, 0%, 0)', | |
borderColor: 'hsl(215, 20%, 20%)', | |
css: ` |
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 state | |
var tx = 0; | |
var ty = 0; | |
var scale = 1; | |
function visualiseTargetState() { | |
box.style.transform = `translate(${tx}px, ${ty}px) scale(${scale})`; | |
} |
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
Room& | |
Status | |
Event starts within 10m -> Booked | |
Free | |
Use now -> In Use | |
Booked | |
Check in -> In Use | |
10m grace period -> Free |
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
Clients | |
List* | |
Client -> Detail | |
Add -> New Client | |
Detail | |
Unchanged* | |
Blur or close -> List | |
Edit a field -> Edited Details | |
Delete and confirm -> List | |
Edited Details |
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/bash | |
mkdir icon.iconset | |
qlmanage -t -s 1024 -o . icon.ai | |
mv icon.ai.png icon.png | |
convert icon.png -gravity center -background white -extent 1024x1024 -alpha Set -colorspace sRGB -define png:format=png32 icon.png | |
sips -z 16 16 icon.png --out icon.iconset/icon_16x16.png | |
sips -z 32 32 icon.png --out icon.iconset/icon_16x16@2x.png | |
sips -z 32 32 icon.png --out icon.iconset/icon_32x32.png | |
sips -z 64 64 icon.png --out icon.iconset/icon_32x32@2x.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
const EventEmitter = require('events'); | |
const electron = require('electron'); | |
const address = require('address'); | |
const Netmask = require('netmask').Netmask; | |
const http = require('http'); | |
const firstOpenPort = require('first-open-port'); | |
const got = require('got'); | |
const Polo = require('polo'); |
NewerOlder