Skip to content

Instantly share code, notes, and snippets.

wijhuang

Block or report user

Report or block wijhuang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wijhuang
wijhuang / onetab.js
Created Apr 30, 2018
OneTab Extension to print link
View onetab.js
var list = document.getElementsByTagName("a")
var str = ""
for (var i=0; i<list.length; i++) {
str += list[i].innerText + "\n";
str += list[i].href + "\n";
}
console.log(str);
@wijhuang
wijhuang / check.js
Last active Apr 10, 2018
Inject jQuery to any webpage
View check.js
if (typeof(jQuery)=="function") console.log("Success")
@wijhuang
wijhuang / dateadd.sql
Created Aug 19, 2016
SQL Server Date Add Function
View dateadd.sql
--Reference
--http://www.w3schools.com/sql/func_dateadd.asp
--http://stackoverflow.com/questions/113045/how-to-return-the-date-part-only-from-a-sql-server-datetime-datatype
--SQL Server DATE ADD Function
--Syntax DATEADD(<datepart>,<value>,<date>)
SELECT DATEADD(DAY,1,'2016-08-19')
You can’t perform that action at this time.