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
| addLoadEvent(function() { | |
| var dropdowns = form.getElementsByTagName("select"); | |
| setInterval(function() { | |
| for(var i = 0; i < dropdowns.length; ++i) { | |
| if(dropdowns[i].value != "") { | |
| if(document.getElementsByClassName(dropdowns[i].id).length == 0) { | |
| var input = document.createElement("input"); | |
| input.type = "hidden"; | |
| input.className = dropdowns[i].id; | |
| input.name = "lists[]"; |
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
| addLoadEvent(function() { | |
| var dropdowns = form.getElementsByTagName("select"); | |
| for(var i = 0; i < dropdowns.length; ++i) { | |
| dropdowns[i].onchange = function() { | |
| if(dropdowns[i].value != "") { | |
| if(document.getElementsByClassName(dropdowns[i].id).length == 0) { | |
| var input = document.createElement("input"); | |
| input.type = "hidden"; | |
| input.className = dropdowns[i].id; | |
| input.name = "lists[]"; |
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
| array = ["a", "b"] | |
| index = 0 | |
| array.map do |letter| | |
| next if letter == "a" | |
| index += 1 | |
| end |
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
| <div class="mimi_webform_container"> | |
| <div class="mimi_webform<%= @signup.logo_background_color == 'transparent' ? '' : ' with_bg' %>"> | |
| <% if @signup.has_logo? %> | |
| <div class="mimi_webform_header mimi_webform_logo <%= @signup.logo_ui_dark? ? 'ui_dark' : 'ui_light' %>" style='background-color:<%= @signup.logo_background_color %>; width:<%= @signup.iframe_form_width %>px;'> | |
| <h1 style="color: <%= @signup.font_color %>;"><%= @signup.iframe_header %></h1> | |
| </div> | |
| <% end %> | |
| <%= @signup.form_text(false, true) %> | |
| </div> | |
| </div> |
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
| 12 dorchester | |
| high level road | |
| 074 656 1883 dovi | |
| 074 240 7275 daniel | |
| seapoint | |
| wendy 021 434 8680 | |
| cell 082 765 7801 | |
| beit midrash morasha |
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
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
| #include <FastLED.h> | |
| #define NUM_LEDS 10 | |
| #define LED_PIN 9 | |
| #define LED_TYPE WS2811 | |
| CRGB led[NUM_LEDS]; | |
| void setup() |
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
| //Program by Michael Bartlett | |
| //Libraries | |
| #include <Adafruit_NeoPixel.h> //Library to simplify interacting with the LED strand | |
| #ifdef __AVR__ | |
| #include <avr/power.h> //Includes the library for power reduction registers if your chip supports them. | |
| #endif //More info: http://www.nongnu.org/avr-libc/user-manual/group__avr__power.htlm | |
| //Constants (change these as necessary) | |
| #define LED_PIN A5 //Pin for the pixel strand. Does not have to be analog. |
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 { EditorState, ContentState, convertFromRaw } from 'draft-js'; | |
| const editorStateReducer = (state = defaultEditorState, action) => { | |
| switch(action.type) { | |
| case MORE_CONTENT_RETRIEVED: { | |
| // Capture current state | |
| const currentContentState = state.getCurrentContent(); | |
| const currentBlockMap = currentContentState.getBlockMap(); | |
| const currentSelection = state.getSelection(); |
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 currentContentState = state.getCurrentContent(); | |
| const currentBlockMap = currentContentState.getBlockMap(); | |
| const currentSelection = state.getSelection(); |