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 / HowToPrintContentsFromCertainDIV_printThisDiv3.html
Last active January 25, 2018 16:33
HowToPrintContentsFromCertainDIV_printThisDiv3 #html #VS
<div id = "printThisDiv">
This part of the page will only be printed!!!
</div>
<input type = "button" value = "Print"
onclick = "JavaScript:printSpecificDiv('printThisDiv');" />
@sayham-sjb
sayham-sjb / ListAllPages_VS.js
Last active January 25, 2018 16:35
ListAllFiles #js #VS
<script type="text/javascript">
function loadtoc(e){!function(){if("entry"in e.feed){var t=e.feed.entry.length;numberfeed=t,ii=0;for(var r=0;r<t;r++){for(var n,o=e.feed.entry[r],a=o.title.$t,s=o.published.$t.substring(0,10),i=o.published.$t.substring(5,7),l=o.published.$t.substring(8,10),p=month2[parseInt(i,10)-1]+" "+o.published.$t.substring(0,4),u="/"+o.published.$t.substring(0,4)+"_"+i+"_01_archive.html",h=0;h<o.link.length;h++)if("alternate"==o.link[h].rel){n=o.link[h].href;break}for(h=0;h<o.link.length;h++)if("enclosure"==o.link[h].rel){o.link[h].href;break}postTitle.push(a),postDate.push(s),postUrl.push(n),postYearMonth.push(p),postYearMonth2.push(u),postTanggal.push(l)}}}(),displayToc2(),
document.write('<br/><a href="http://feeds2.feedburner.com/virtualspecies" target="_Blank" style="font-size: 10pt; text-decoration:none; color: lightslategray; float:right;border:1pt solid darkolivegreen;padding:5px;border-radius:5px;">Subscribe to RSS Feed.</a></br/>')}function displayToc2(){for(var e=0,t=0;t<postTit
@sayham-sjb
sayham-sjb / AtomStyleDarkUI.less
Last active January 25, 2018 16:35
AtomStyleDarkUI #less
/*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*/
/* style the background color of the tree view */
.tree-view {
background-color: black;
}
@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 / 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;