I hereby claim:
- I am rhwy on github.
- I am rhwy (https://keybase.io/rhwy) on keybase.
- I have a public key whose fingerprint is B16B AF86 1DC2 478C F7FC 0BBF 7111 E669 FBFD 11A9
To claim this, I am signing this object:
| /* | |
| * Bookmarklet for viewing source in iPad Safari | |
| */ | |
| javascript:(function(){ | |
| var w = window.open('about:blank'), | |
| s = w.document; | |
| s.write('<!DOCTYPE html><html><head><title>Source of ' + location.href + '</title><meta name="viewport" content="width=720, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1.0" /></head><body></body></html>'); | |
| s.close(); |
| // 2) | |
| public static class AppDomainAssemblyTypeScannerIgnoreHelper | |
| { | |
| private static IEnumerable<Func<Assembly,bool>> _ignoreList; | |
| public static IEnumerable<Func<Assembly,bool>> IgnoreList | |
| { | |
| get { return _ignoreList;} | |
| set {_ignoreList = value;} | |
| } |
| void Main() | |
| { | |
| var a = (Meter)123 + (Kilometer)2.3 + (Centimeter)1234; | |
| Console.WriteLine(a.ToString()); | |
| Console.WriteLine(a.To<Kilometer>().ToString()); | |
| Console.WriteLine(a.To<Centimeter>().ToString()); | |
| var b = (Meter)2 * (Centimeter)30; | |
| Console.WriteLine(b.ToString()); | |
| Console.WriteLine(b.ToSurface<Centimeter>().ToString()); |
| //Imagine you have a Cart with items you can add into | |
| public class Cart | |
| { | |
| public int Id {get;private set} | |
| public List<CartItem> Items {get;private set} | |
| public Cart(int id) { Id = id;} | |
| //while writing your tests, you (want to) arrive to these checks (3 situations to test) | |
| public void AddItem(CartItem item) { |
| namespace nurl1 | |
| { | |
| class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| if(args.Length<1 || !(Regex.Match(args[0],@"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b").Success)) | |
| throw new ArgumentException("not a valid ip number"); | |
| Console.WriteLine("Country for ip [{0}]",args[0]); |
| public class HomeModule : NancyModule | |
| { | |
| public HomeModule () | |
| { | |
| Get ["/"] = p => "hello"; | |
| Get ["/{id}/{user}"] = p => { | |
| User user = new User(p.id,p.user); | |
| return Negotiate.WithModel(user); | |
| }; |
I hereby claim:
To claim this, I am signing this object:
#hello
| @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" > "c:\install-log.txt" | |
| cinst googlechrome -y | |
| cinst python -y | |
| cinst nodejs -y | |
| cinst jre8 -y | |
| cinst git.install -y | |
| cinst dotnetcore-sdk -y | |
| cinst dotnet4.7.1 -y | |
| cinst azure-cli -y | |
| cinst microsoftazurestorageexplorer -y | |
| cinst ngrok -y |