** PowerShell
Invoke-WebRequest -Uri 'http://url' -OutFile 'D:\downloaded_file'
(New-Object System.Net.WebClient).DownloadFile('http://url', 'D:\downloaded_file')
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; | |
vertical-align: baseline; | |
outline: none; | |
} | |
html { height: 101%; } /* always display scrollbars */ |
pre { | |
white-space: pre-wrap; /* Chrome & Safari */ | |
white-space: -moz-pre-wrap; /* Mozilla since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
} |
// Array Remove - By John Resig (MIT Licensed) | |
Array.prototype.remove = function (from, to) { | |
var rest = this.slice((to || from) + 1 || this.length); | |
this.length = from < 0 ? this.length + from : from; | |
return this.push.apply(this, rest); | |
}; |
/** | |
* Class for mixing | |
* | |
* Use: | |
* var input = document.querySelector('#input').innerText; | |
* var output = Mixer.shuffleString(input); | |
*/ | |
(function(w) { | |
var mixer = {}; |
(function(){ | |
// by https://gist.github.com/wcoder/10601500 | |
var shuffleArray = function (array) { | |
for (var j, x, i = array.length; i;) | |
{ | |
j = j = parseInt(Math.random() * i); | |
x = array[--i]; | |
array[i] = array[j]; | |
array[j] = x; |
public static class SimpleIoc | |
{ | |
private static readonly ConcurrentDictionary<Type, object> _dependencyMap = new ConcurrentDictionary<Type, object>(); | |
public static void Register<TName>(object instance) | |
{ | |
_dependencyMap.TryAdd(typeof(TName), instance); | |
} | |
public static T Get<T>() |
using System; | |
using System.Threading.Tasks; | |
using Windows.UI.Xaml.Controls; | |
namespace POCWebViewUniversal | |
{ | |
class Auth | |
{ | |
private const string MainPage = ""; | |
private const string LoginPage = ""; |
** PowerShell
Invoke-WebRequest -Uri 'http://url' -OutFile 'D:\downloaded_file'
(New-Object System.Net.WebClient).DownloadFile('http://url', 'D:\downloaded_file')
#!/bin/bash | |
echo "Page URL:" | |
read URL | |
echo "How many times do we see:" | |
read NUMBER | |
mkdir /tmp/cheet_views | |
cd /tmp/cheet_views |