To install vscode
To install vscode:
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")); |
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; |
curl -L "https://go.microsoft.com/fwlink/?LinkID=760868" > /tmp/vscode.deb | |
sudo dpkg -i /tmp/vscode.deb && sudo apt-get install -f |
// 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`; |
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 | |
} |
<?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> |
.ng-invalid.ng-touched:not(:focus):not(form) { border: 1px solid red; } | |
.ng-untouched ~ span, :focus ~ span { display: none; } | |
.ng-valid ~ span { display: none; } |