Skip to content

Instantly share code, notes, and snippets.

View sayham-sjb's full-sized avatar
🌐
^-^

Sayham Chowdhury sayham-sjb

🌐
^-^
View GitHub Profile
@sayham-sjb
sayham-sjb / SlackNightTheme.less
Last active May 4, 2018 16:13
SlackNightTheme #less
:root {
--primary: #09F;
--accent: #57A;
--background: #080808;
--background-elevated: #222;
/*--background-hover: rgba(255, 255, 255, 0.1);*/
--background-hover: rgba(255, 255, 255);
--sidebar-background: #1a2129;
@sayham-sjb
sayham-sjb / UnitedStatesTimeZones.css
Last active January 25, 2018 17:41
UnitedStatesTimeZones #css #VS
#outTmZn1, #outTmZn2, #outTmZn3, #outTmZn4, #outTmZn5, #outTmZn6, #outTmZn7, #outTmZn8, #outTmZn9, #outTmZn10, #outTmZn11, #outTmZn12, #outTmZn13, #outTmZn14, #outTmZn15, #outTmZn16, #outTmZn17, #outTmZn18, #outTmZn19, #outTmZn20 {font-size:12pt;padding:10px;line-height:200%;}
#tdTmZn1 {border:1px solid #778899;border-radius:3px;}
#tdTmZn1:hover {border:1px solid #008080;}
#tdTmZn2 {border:1px solid #dd855c;border-radius:3px;}
@sayham-sjb
sayham-sjb / UnitedStatesTimeZones.html
Last active January 25, 2018 17:41
UnitedStatesTimeZones #html #VS
<center><table>
<tr>
<td id="tdTmZn1" colspan=2><span id="outTmZn1"></span></td>
<td id="tdTmZn1"><span id="outTmZn2"></span></td>
</tr>
<tr>
<td id="tdTmZn2" colspan=2><span id="outTmZn3"></span></td>
<td id="tdTmZn2"><span id="outTmZn4"></span></td>
</tr>
<tr>
@sayham-sjb
sayham-sjb / UnitedStatesTimeZones.js
Last active January 25, 2018 18:11
UnitedStatesTimeZones #js #VS
document.getElementById("outTmZn1").innerHTML = "Hawaii Time_ ";
document.getElementById("outTmZn3").innerHTML = "Hawaii-Aleutian Time_ ";
document.getElementById("outTmZn5").innerHTML = "Alaskan Time_ ";
document.getElementById("outTmZn7").innerHTML = "Pacific Time_ ";
document.getElementById("outTmZn9").innerHTML = "Mountain Time_ ";
document.getElementById("outTmZn11").innerHTML = "Central Time_ ";
document.getElementById("outTmZn13").innerHTML = "Eastern Time_ ";
document.getElementById("outTmZn15").innerHTML = "Atlantic Time_ ";
document.getElementById("outTmZn17").innerHTML = "GMT Time_ ";
document.getElementById("outTmZn19").innerHTML = "Local Time_ ";
@sayham-sjb
sayham-sjb / JavaScriptsetInterval()Method.js
Last active February 20, 2018 03:48
JavaScriptsetInterval()Method #js #VS
var dtId;
function autoGenDt() {
var date = new Date();
document.getElementById("dtPnl").innerHTML = date;
}
function autoDtSrt() {
if (dtId) {
clearInterval(dtId);
}
dtId = setInterval(function () {
@sayham-sjb
sayham-sjb / JavaRecursionMethod_myRecursive0.txt
Last active March 29, 2018 19:07
JavaRecursionMethod_myRecursive0 #txt #VS
public int myRecursive(){
int myRecursive();
}
@sayham-sjb
sayham-sjb / TwitterCrammingUser.js
Last active January 25, 2018 18:12
TwitterCrammingUser #js #VS
// ==UserScript==
// @name Twitter Cramming
// @description Force enable cramming (280 character tweets) on Twitter
// @author Prof. 9
// @version 0.1
// @match https://twitter.com/*
// @run-at document-idle
// @namespace prof9.twittercramming
// ==/UserScript==
@sayham-sjb
sayham-sjb / ClickCountWithHovering.html
Last active January 25, 2018 18:13
ClickCountWithHovering #html #VS
<html>
<head>
<script>
var hoverCount = 1;
</script>
</head>
<body>
<div style="text-align: center;">
<button class="hoverButton" type='button'
onmouseover='alert ("Hovered " + hoverCount +" times.");
@sayham-sjb
sayham-sjb / ClickCountWithJavaScript_localStorage.js
Last active January 25, 2018 18:13
ClickCountWithJavaScript_localStorage #js #VS
$("#countButton").on('click', function(e) {
if (typeof(Storage) !== "undefined") {
if (localStorage.clickcount) {
localStorage.clickcount = parseInt($("#displayCount").text());
localStorage.clickcount = Number(localStorage.clickcount) + 1;
} else {
localStorage.clickcount = 0;
}
document.getElementById("displayCount").innerHTML = localStorage.clickcount;
} else {
@sayham-sjb
sayham-sjb / ClickCountWithJavaScript1.js
Last active January 25, 2018 18:13
ClickCountWithJavaScript1 #js #VS
var count = 0;
var countButton = document.getElementById("countButton");
var displayCount = document.getElementById("displayCount");
countButton.onclick = function(){
count++;
displayCount.innerHTML = count;
}
resetButton.onclick = function(){
count = 0;
displayCount.innerHTML = count;