This file contains hidden or 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
.ng-invalid.ng-touched:not(:focus):not(form) { border: 1px solid red; } | |
.ng-untouched ~ span, :focus ~ span { display: none; } | |
.ng-valid ~ span { display: none; } |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-16"?> | |
<StorableColorTheme xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<Keys> | |
<string>ErrorForegroundColor</string> | |
<string>ErrorBackgroundColor</string> | |
<string>WarningForegroundColor</string> | |
<string>WarningBackgroundColor</string> | |
<string>VerboseForegroundColor</string> | |
<string>VerboseBackgroundColor</string> | |
<string>DebugForegroundColor</string> |
This file contains hidden or 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
update-sqlectron() { | |
local x=$(curl -s https://github.com/sqlectron/sqlectron-gui/releases | grep '/sqlectron/sqlectron-gui/releases/tag/' | head -n 1 | awk -F "[><]" '{print $3}' | head -n 2 | sed 's,v,,g') | |
curl -L "https://github.com/sqlectron/sqlectron-gui/releases/download/v$x/Sqlectron-$x.deb" > /tmp/sqlectron.deb | |
sudo dpkg -i /tmp/sqlectron.deb && sudo apt install -f | |
} |
This file contains hidden or 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
// first inject jQuery on the page, then run on /wp-admin/edit.php | |
// wait for it then run o.join('\n') | |
// execute the output on _posts folder | |
var o = []; | |
(function() { | |
let posts = [].slice.call(document.querySelectorAll('.post_name')).map(e => { | |
let container = e.parentNode; | |
let id = container.id.split('_')[1]; | |
let editUrl = `https://your.wordpress.com/wp-admin/post.php?post=${id}&action=edit`; |
This file contains hidden or 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
curl -L "https://go.microsoft.com/fwlink/?LinkID=760868" > /tmp/vscode.deb | |
sudo dpkg -i /tmp/vscode.deb && sudo apt-get install -f |
This file contains hidden or 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
class Assert | |
{ | |
public static AreEqual<T>(expected: T, actual: T, message: string = ""): void | |
{ | |
if (expected !== actual) | |
{ | |
throw "Assert.AreEqual failed. " | |
+ "Expected: <" + expected + ">. " | |
+ "Actual: <" + actual + ">. " | |
+ message; |
This file contains hidden or 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 www = new Uri("http://www.stackoverflow.com:80/path/sub.aspx?query=11#!/path2?query2=2"); | |
var t = []; | |
for (var i in www) | |
{ | |
t.push(i + " " + www[i]); | |
} | |
alert(t.join("\n")); |
NewerOlder