** PowerShell
Invoke-WebRequest -Uri 'http://url' -OutFile 'D:\downloaded_file'
(New-Object System.Net.WebClient).DownloadFile('http://url', 'D:\downloaded_file')
var str = "Hello World!"; | |
function rev1(s){return s.split('').reduce(function(a,b){return b+a;}).join('');} | |
function rev2(s){return s.split('').reverse().join('');} | |
console.log(rev1(str)); | |
console.log(rev2(str)); |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; } | |
html { | |
overflow: hidden; | |
-ms-touch-action: pan-y; | |
touch-action: pan-y; } |
/** | |
* @param seconds - time | |
* @param tick - callback | |
* @param result - callback | |
*/ | |
function timer (seconds, tick, result) { | |
if (seconds > 0) { | |
tick(seconds); | |
seconds -= 1; | |
setTimeout(function () { |
class JsonHelper | |
{ | |
public static string FormatJson(string str, string indentString = "\t") | |
{ | |
var indent = 0; | |
var quoted = false; | |
var sb = new StringBuilder(); | |
for (var i = 0; i < str.Length; i++) | |
{ | |
var ch = str[i]; |
itms-services://?action=download-manifest&url=http://loqi.me/app/Geoloqi.plist | |
From: http://aaronparecki.com/articles/2011/01/21/1/how-to-distribute-your-ios-apps-over-the-air |
public interface IRemove | |
{ | |
ICommand RemoveCommand { get; } | |
} |
description "node.js server" | |
author "Yuaheni Pakala" | |
# used to be: start on startup | |
# until we found some mounts weren't ready yet while booting: | |
start on started mountall | |
stop on shutdown | |
# Automatically Respawn: | |
respawn |
public class BaseViewModel : BaseNotify | |
{ | |
bool _isBusy = false; | |
CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource(); | |
public bool IsBusy | |
{ | |
get | |
{ | |
return _isBusy; |
** PowerShell
Invoke-WebRequest -Uri 'http://url' -OutFile 'D:\downloaded_file'
(New-Object System.Net.WebClient).DownloadFile('http://url', 'D:\downloaded_file')
Edit: %SystemRoot%\system32\drivers\etc\hosts
127.0.0.1 devads.skypeassets.net devapps.skype.net
127.0.0.1 qawww.skypeassets.net qaapi.skype.net
127.0.0.1 preads.skypeassets.net preapps.skype.net
127.0.0.1 static.skypeassets.com serving.plexop.net
127.0.0.1 preg.bforex.com ads1.msads.net
127.0.0.1 flex.msn.com apps.skype.com