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 / JavaRecursionMethod_myRecursive0.txt
Last active March 29, 2018 19:07
JavaRecursionMethod_myRecursive0 #txt #VS
public int myRecursive(){
int myRecursive();
}
@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 / 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 / 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.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 / 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 / ssb-interop.js
Last active February 20, 2018 02:50
SlackThemeChange #js
//To modify slack theme, append the following to
///usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'Enter your CSS url',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
});
@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 / 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 / RemoveSingleUserMode.sql
Last active February 16, 2018 13:38
RemoveSingleUserMode #sql
-- Start in master USE MASTER; ALTER DATABASE [DB Name] SET MULTI_USER GO