This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sample Usage: | |
@import "grid.less"; | |
.gauge | |
{ | |
.make-grid(@sm,1,4); --Used for Responsive Styles | |
.make-grid(1,2); --Used for Non-Responsive Styles that can be used with Older Browsers and Mobile Screens. | |
} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#From https://askubuntu.com/a/1230442/1168126 | |
echo 60 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold | |
#Add to /etc/crontab using sudo gedit /etc/crontab | |
@reboot root echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub UnMergeFill() | |
Dim cell As Range, joinedCells As Range | |
For Each cell In ThisWorkbook.ActiveSheet.UsedRange | |
If cell.MergeCells Then | |
Set joinedCells = cell.MergeArea | |
cell.MergeCells = False | |
joinedCells.Value = cell.Value | |
End If |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAllElementsWithAttribute(d,parent) { | |
for (var c = [], b = parent.getElementsByTagName("*"), a = 0, e = b.length;a < e;a++) { | |
null !== b[a].getAttribute(d) && c.push(b[a]); | |
} | |
return c; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oldXHR = XMLHttpRequest.prototype.send; | |
XMLHttpRequest.prototype.send = function () { | |
//Insert code to run when new XHR request is created | |
XHRCreated(); | |
oldXHR.apply(this, arguments); | |
var oldReadSta = this.onreadystatechange; | |
this.onreadystatechange = function () { | |
oldReadSta.apply(this, arguments); |