This file contains hidden or 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
| { | |
| "description": "caps lock = hyper key ¦ single-tap=f12, long-press=f8", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "parameters": { | |
| "basic.to_if_alone_timeout_milliseconds": 300, |
This file contains hidden or 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
| { | |
| "description": "caps lock → hyper key ¦ double-tap=f12, long-press=f8", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "name": "hyper_caps_tap", | |
| "type": "variable_if", | |
| "value": 1 | |
| } |
This file contains hidden or 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 | |
| # Function to rename a file with its creation date prefix | |
| rename_with_date() { | |
| local file="$1" | |
| # Skip if the file doesn't exist | |
| if [ ! -f "$file" ]; then | |
| echo "Error: File '$file' not found" | |
| return 1 |
This file contains hidden or 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
| // preview the output here: https://www.youtube.com/watch?v=k3yddvs_8aU | |
| // requires the Hype Processing Library | |
| // https://github.com/hype/HYPE_Processing | |
| import hype.*; | |
| import hype.extended.behavior.HOscillator; | |
| import hype.extended.colorist.HColorPool; | |
| import hype.extended.layout.HPolarLayout; | |
| // sketch variables | |
| int stageW = 800; |
This file contains hidden or 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
Show hidden characters
| // Assumes this file is in ~/Sites/_workspaces | |
| // The settings customize the color of the title bar | |
| { | |
| "folders": [ | |
| { | |
| "path": "../folder-name" | |
| } | |
| ], | |
| "settings": { | |
| "workbench.colorCustomizations": { |
This file contains hidden or 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
| <snippet><content><![CDATA[ | |
| ${1:import processing.pdf.*;} | |
| import hype.*; | |
| // ENVIRONMENT VARIABLES ************************************************* | |
| // Screen: 1440×900; Dribbble: 800×600; HD: 1920×1080 or 960×540) | |
| int stageW = 800; | |
| int stageH = 600; | |
| color clrBG = #242424; |
This file contains hidden or 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
| { | |
| "scope": "source.pde", | |
| "completions": | |
| [ | |
| // behaviors | |
| { "trigger": "HAttractor", "contents": "import hype.extended.behavior.HAttractor;" }, | |
| { "trigger": "HAttracted", "contents": "import hype.extended.behavior.HAttractor.HAttracted;" }, | |
| { "trigger": "HAttractionForce", "contents": "import hype.extended.behavior.HAttractor.HAttractionForce;" }, | |
| { "trigger": "HFollow", "contents": "import hype.extended.behavior.HFollow;" }, | |
| { "trigger": "HMagneticField", "contents": "import hype.extended.behavior.HMagneticField;" }, |
This file contains hidden or 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
| { | |
| "scope": "source.pde", | |
| "completions": | |
| [ | |
| // push pop matrix | |
| { "trigger": "push|pop|matrix", "contents": "\tpushMatrix();\n\t\ttranslate($1,$2,$3);\n\t\trotateX(radians($4));\n\t\trotateY(radians($5));\n\t\trotateZ(radians($6));\n\n\tpopMatrix();\n" }, | |
| // hello world | |
| { "trigger": "hello|world", "contents": "Hello World!" } | |
| ] | |
| } |
This file contains hidden or 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
| <snippet><content><![CDATA[ | |
| // NOTE: set transparent background with H.CLEAR | |
| // PLACE BEFORE CLOSING BRACE IN VOID SETUP() | |
| saveHiRes(1); // define the scale factor | |
| noLoop(); | |
| } // CLOSE VOID SETUP() | |
| void draw() { | |
| H.drawStage(); | |
| } |
This file contains hidden or 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
| <snippet><content><![CDATA[ | |
| // MOVE TO LINE 1 | |
| import processing.pdf.*; | |
| // PLACE BEFORE CLOSING BRACE IN VOID SETUP() | |
| saveVector(); | |
| noLoop(); | |
| } // CLOSE VOID SETUP() | |
| void draw() { | |
| H.drawStage(); |
NewerOlder