Based on this post:
defaults write com.apple.Dock workspaces-auto-swoosh -bool NO
defaults write -g AppleSpacesSwitchOnActivate -bool false
killall DockBased on this post:
defaults write com.apple.Dock workspaces-auto-swoosh -bool NO
defaults write -g AppleSpacesSwitchOnActivate -bool false
killall Dock| file=index.js | |
| "${file%.*}.html" |
| /** | |
| * Creates a mapping function that scales a vec2 buffer array | |
| * | |
| * @param {number} x x scale | |
| * @param {number} y y scale | |
| * @return {function} method to pass to Array.prototype.map | |
| * | |
| * @example | |
| * | |
| * [ |
These test sprites are meant to help implementing a spritesheet system. They can be used with free tex packer to test custom configurations, or directly from the pre-generated spritesheets below.
sprites.zip
Raw sprites exported from Sketch as single png files
spritesheet-rotated.json
| ffmpeg -i input.mp3 -filter:a "volume=0.5" output.mp3 | |
| ffmpeg -i input.mp3 -filter:a "volume=5dB" output.mp3 | |
| ffmpeg -i input.mp3 -filter:a "volume=-5dB" output.mp3 |
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
| convert -delay 4 -loop 0 *.png output.gif | |
| # Order the input files by naming them with increasing numbers including leading zeros. | |
| # | |
| # delay (centiseconds): | |
| # 25fps <=> 4 | |
| # 30fps <=> 3.33333 | |
| # 60fps <=> 1.66667 | |
| # | |
| # loop: number of times to cycle through the sequence or 0 for infinity |
| # https://twitter.com/fabiogiolito/status/933339627859185664 | |
| sudo rm -rf /.DocumentRevisions-V100/ | |
| rm -rf ~/Library/Developer/Xcode/DerivedData | |
| rm -rf ~/Library/Developer/Xcode/Archives | |
| rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport | |
| rm -rf ~/Library/Developer/Xcode/watchOS\ DeviceSupport | |
| rm -rf ~/Library/Developer/Xcode/tvOS\ DeviceSupport | |
| rm -rf ~/Library/Caches/com.apple.dt.Xcode | |
| xcrun simctl delete unavailable |
| // Factorielle de n | |
| const f = n => n === 0 ? 1 : n * f(n - 1) | |
| // Coefficient binomial (nombre de parties de k éléments dans un ensemble de n éléments) | |
| const c = (n, k) => f(n) / (f(k) * f(n - k)) | |
| function bezier(t, points) { | |
| const n = points.length - 1 | |
| const o = 1 - t |
| import { Vector2, Path } from 'three' | |
| export function arcEdgedPath( | |
| path: Path, | |
| points: Vector2[], | |
| radius: number, | |
| close?: boolean | |
| ): void | |
| export function arcEdgedPath( |