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
| class Foo { | |
| id: string; | |
| constructor(id: string) { | |
| this.id = id; | |
| } | |
| } |
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
| int signal_and_noise, noise_val; | |
| float signal_val, midi_val, constrained_midi_val; | |
| const int IR_LED_PIN = 13; | |
| const int SENSOR_PIN = 17; | |
| const int MIDI_CC = 74; | |
| const int MIDI_CHANNEL = 1; | |
| const float VAL_MIN = 0; |
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
| @php | |
| $url = $url ?? null; | |
| $class = $class ?? ''; | |
| $target = $target ?? '_self'; | |
| $rel = $target === '_blank' ? 'rel="noopener noreferrer"' : ''; | |
| @endphp | |
| @if ($url) | |
| <a href="{{ $url }}" class="{{ $class }}" {{ $rel }}> | |
| @else |
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
| import get from "lodash/get"; | |
| export default { | |
| data() { | |
| return { | |
| xhrErrors: [], | |
| xhrMessage: 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
| #!/usr/bin/env bash | |
| echo "Composer install..." | |
| ./enso composer install | |
| echo "Yarn install..." | |
| ./enso yarn install | |
| echo "Publishing assets..." | |
| if [ $2 = "5" ]; then |
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
| @function percentage($amount, $total) { | |
| @return ($amount / $total) * 100; | |
| } | |
| @mixin ratio($width, $height) { | |
| position: relative; | |
| &::before { | |
| content: ''; | |
| float: left; |
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
| #!/usr/bin/env bash | |
| # Usage: | |
| # ./times.sh http://example.com | |
| # Number of requests to make. You can up this if for a more accurate result | |
| n=20 | |
| # The URL we will be accessing | |
| url=$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
| const int PIN_INT_LED = LED_BUILTIN; | |
| const int PIN_BTN_1 = 6; | |
| int pedal = 0; | |
| int pedal_previous = 0; | |
| void setup() { | |
| pinMode(PIN_BTN_1, INPUT_PULLUP); | |
| pinMode(PIN_INT_LED, OUTPUT); | |
| } |
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
| sudo apt install php7.0 php7.0-mbstring php7.0-dom | |
| sudo apt install docker docker-compose | |
| ###################################################################### | |
| https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository | |
| ###################################################################### | |
| # Webmin |
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
| <!-- Based on https://coderwall.com/p/w7npmq/fully-custom-select-box-simple-css-only --> | |
| <div class="select select--nice"> | |
| <select> | |
| <option value="example">Example</option> | |
| <option value="example">Example</option> | |
| <option value="example">Example</option> | |
| <option value="example">Example</option> | |
| <option value="example">Example</option> | |
| </select> |
NewerOlder