- for all major browsers
- IE6/7 should be supported (not tested)
- written in LESS
- use it as mixin
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
| IMyTerminalBlock doorIn; | |
| IMyTerminalBlock doorOut; | |
| IMyAirVent vent; | |
| public Program() { | |
| Runtime.UpdateFrequency = UpdateFrequency.Update100; | |
| doorIn = GridTerminalSystem.GetBlockWithName("Door In Portside Lock") as IMyTerminalBlock; | |
| doorOut = GridTerminalSystem.GetBlockWithName("Door Out Portside Lock") as IMyTerminalBlock; | |
| vent = GridTerminalSystem.GetBlockWithName("Air Vent Portside Lock") as IMyAirVent; | |
| } |
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
| DEFAULT_AUTHOR="your-author-name" | |
| DEFAULT_EMAIL="[email protected]" | |
| DEFAULT_VERSION="1.0.0" | |
| DEFAULT_GITHUB_USER="your-github-user" | |
| echo "\nHello.\n" | |
| currentDir=$(pwd) | |
| echo "Current dir: ${currentDir}" |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "html/template" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "sync" |
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
| const initialState = { value: null, debounce: null }; | |
| const DebouncedInput = ({ onChange, placeholder, timeout = 500 }) => { | |
| let [ state, setState ] = React.useState(initialState); | |
| const handleChange = (evt) => { | |
| let value = evt.target.value; | |
| if (state.debounce) clearTimeout(state.debounce); | |
| let debounce = null; |
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
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
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
| endpoint1.md | |
| endpoint2.md | |
| endpoint3.md |
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
| namespace :minifier do | |
| JAR = "/Users/blanders/MyDocs/Library/yuicompressor.jar" | |
| def minify(files) | |
| files.each do |file| | |
| next if file =~ /\.min\.(js|css)/ | |
| minfile = file.sub(/\.js$/, ".min.js").sub(/\.css$/, ".min.css") | |
| cmd = "java -jar #{JAR} #{file} -o #{minfile}" |