Skip to content

Instantly share code, notes, and snippets.

View DewofyourYouth's full-sized avatar
:octocat:
Pluckin' banjo or crafting a tinfoil hat. Also, sometimes I code. ;)

Jacob E. Shore DewofyourYouth

:octocat:
Pluckin' banjo or crafting a tinfoil hat. Also, sometimes I code. ;)
  • Dew of your Youth
  • Bet Shemesh, Israel
View GitHub Profile
@DewofyourYouth
DewofyourYouth / html.json
Created March 9, 2018 14:47
VSCode Snippets for Making Emails w/ GroupMail and Active Campaign Variables
"Active Campaign Variable": {
"prefix": "acv",
"body": "%$1%",
"description": "Make an AC Variable"
},
"GroupMail Variable": {
"prefix": "gmv",
"body": "!*$1*!",
"description": "Make a GM Variable"
},
@DewofyourYouth
DewofyourYouth / index.html
Created March 23, 2018 07:52
Local Weather
<div class="container-fluid text-center">
&nbsp;
<h1 id="title" style="color: #ffffff;">Yer Locil Wethr</h1>
<div class="white">
<h3>
<span id='icon'><img src="https://cdn.glitch.com/6e8889e5-7a72-48f0-a061-863548450de5%2F10n.png?1499366021399"></span>
<h2><span id="city">Somewhere,</span><span id="country"> OT</span></h2>
<h3><span id="temp">100</span>&nbsp;<button id="metr-toggle" class="btn btn-secondary">C</button>&nbsp;&nbsp;|&nbsp;&nbsp;<span id="desc">Rain</span><span id="tempfar"></span>
</h3>
</div></div>
@DewofyourYouth
DewofyourYouth / hex_rgb.py
Created June 20, 2018 11:51
HEX RGB Conversion
def get_hex(red, green, blue):
rgb = [red, green, blue]
hex_val = '#'
for color in rgb:
hex_val += hex(color)[2:]
print(hex_val)
get_hex(209, 212, 211)
@DewofyourYouth
DewofyourYouth / index.html
Last active July 9, 2018 15:33
video section
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-primary">Event Videos</h1><br>
</div>
</div>
<div class="row">
<div class="col-md-4 event"><button type="button" class="gradient-css" role="button" data-toggle="modal" data-target="#myModal"><i data-feather="play-circle"></i> Play</button></div>

Gematria Converter

Converts integers between 499 to gematria strings.

Part of an app I'm developing to keep track of your progress through Shas.

@DewofyourYouth
DewofyourYouth / index.html
Created October 18, 2018 14:48
Multiplication Table - Web School
<div class="container">
<div class="row">
<div class="col-12">
<div id="multi-table"> </div>
</div>
</div>
</div>
@DewofyourYouth
DewofyourYouth / index.html
Last active October 29, 2018 15:13
Time Calculator
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<input type="text" id="time">
<h1 id="display"></h1>
@DewofyourYouth
DewofyourYouth / date_object_snippets.js
Created November 6, 2018 15:36
Some quick code snippets for tutorial on working with the JavaScript date object.
//iterate date
var myDate = new Date();
var dateInMS = myDate.getTime();
// day in milliseconds = 1000 (milliseconds in a second) * 60 (seconds in a minute) * 60 (minutes in an hour) * 24 (hours in a day) = 86400000 (millseconds in a day)
// the getTime() method gets the time in milliseconds since January 1, 1970.
var tomorrow = new Date(datInMS + 86400000);
console.log(myDate);
console.log(tomorrow);
@DewofyourYouth
DewofyourYouth / nazir_schedule.gs
Created November 7, 2018 23:29
A scheduler for studying tractate Nazir
function onEdit(e) {
// Interact with Sheets App
var app = SpreadsheetApp;
// get current active sheet
var activeSheet = app.getActiveSpreadsheet().getActiveSheet();
// gets the amount of blatt in Nazir
var blattInNazir = activeSheet.getRange("B2").getValue();
// Log blattInNazir
Logger.log("There are " + blattInNazir + " blatt in Nazir");
@DewofyourYouth
DewofyourYouth / index.html
Last active November 7, 2018 23:36
The Roman Numerator
<div id="main">
<div class="container-fluid">
<div class="row" style="border-bottom: solid #ccc .5px;">
<div class="col-md-6 text-center numerator">
<h1>{{title}}</h1>
<input class="form-control" v-model="number" placeholder="insert number here"></div>
<div class="col-md-6 text-center" style="width: 100%;">
<h1>{{roman | uppercase}}</h1>
<hr>
<p class="display-4">{{number | roman}}</p> </div>