Skip to content

Instantly share code, notes, and snippets.

View pankajpatel's full-sized avatar
🎯
Focusing

Pankaj Patel pankajpatel

🎯
Focusing
View GitHub Profile
<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};
<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() {
" 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
/c/xampp/htdocs
┌─────────────────────────────┬───────────────────┐
│ Directory │ Current Branch/NA │
├─────────────────────────────┼───────────────────┤
│ movieDB │ master │
├─────────────────────────────┼───────────────────┤
│ list-repos │ master │
├─────────────────────────────┼───────────────────┤
│ list-repos-old │ old │
├─────────────────────────────┼───────────────────┤
#!/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
#!/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)"
{
"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",
{
"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,
{
"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,
$baseFontSize: 14px !default;
// function to calculate em font size
@function em($target, $context: $baseFontSize) {
@if $target==0 {
@return 0;
}
@return $target / $context+ 0em;
}