This file contains 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
<p id="sum">0</p> | |
<div id="items"></div> | |
<script> | |
let items = [5, 14, 3, 8]; | |
let sum = { | |
total: 0, | |
items: {} | |
} | |
items.forEach((item, index) => { | |
sum.items[index] = {checked: false, value: item}; |
This file contains 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
<p id="sum">0</p> | |
<div id="items"> | |
<p><input type="checkbox" class="item item-1" value="5" />5</p> | |
<p><input type="checkbox" class="item item-2" value="14" />14</p> | |
<p><input type="checkbox" class="item item-3" value="3" />3</p> | |
<p><input type="checkbox" class="item item-4" value="8" />8</p> | |
</div> | |
<script> | |
items = Array.prototype.slice.call(document.querySelectorAll('.item')) | |
function add() { |
This file contains 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
" Use pathogen to easily modify the runtime path to include all | |
" plugins under the ~/.vim/bundle directory | |
call pathogen#helptags() | |
call pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set nocompatible " be iMproved, required |
This file contains 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
/c/xampp/htdocs | |
┌─────────────────────────────┬───────────────────┐ | |
│ Directory │ Current Branch/NA │ | |
├─────────────────────────────┼───────────────────┤ | |
│ movieDB │ master │ | |
├─────────────────────────────┼───────────────────┤ | |
│ list-repos │ master │ | |
├─────────────────────────────┼───────────────────┤ | |
│ list-repos-old │ old │ | |
├─────────────────────────────┼───────────────────┤ |
This file contains 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 | |
echo "Brahch Listing" | |
cd /c/xampp/htdocs/ | |
RED='\033[0;31m' | |
BLUE='\033[1;34m' | |
GREEN='\033[1;32m' | |
NC='\033[0m' # No Color |
This file contains 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 | |
echo "Brahch Listing" | |
cd /c/xampp/htdocs/ | |
cd ./REPO1 | |
x="$(git rev-parse --abbrev-ref HEAD)" | |
printf "REPO1\t$x" | |
cd ./REPO2 | |
x="$(git rev-parse --abbrev-ref HEAD)" |
This file contains 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"default_encoding": "UTF-8", | |
"default_line_ending": "unix", | |
"detect_indentation": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": false, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", |
This file contains 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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 1, | |
"caret_extra_top": 1, | |
"caret_extra_width": 1, | |
"caret_style": "blink", | |
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme", | |
"fade_fold_buttons": false, | |
"font_size": 13, |
This file contains 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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 1, | |
"caret_extra_top": 1, | |
"caret_extra_width": 1, | |
"caret_style": "blink", | |
// "color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme", | |
"fade_fold_buttons": false, |
This file contains 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
$baseFontSize: 14px !default; | |
// function to calculate em font size | |
@function em($target, $context: $baseFontSize) { | |
@if $target==0 { | |
@return 0; | |
} | |
@return $target / $context+ 0em; | |
} |