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
eXtreme Go Horse (XGH) Process | |
Quelle: http://gohorseprocess.wordpress.com | |
Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
1. Ich denke, also ist es nicht XGH. | |
In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
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
public static class TaskCancellationExtension | |
{ | |
/// <summary> | |
/// add cancellation functionality to Task T | |
/// </summary> | |
/// <param name="task"></param> | |
/// <param name="cancellationToken"></param> | |
/// <typeparam name="T"></typeparam> | |
/// <returns></returns> | |
/// <exception cref="OperationCanceledException"></exception> |
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
/** | |
* A Generic class to set and get values from and to the default shared preferences | |
* @param <T> | |
*/ | |
public class PrefManager<T> { | |
private Context context; | |
public PrefManager(Context context) { | |
if(context==null) throw new IllegalArgumentException("Context can not be null"); |
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
#!/bin/sh │info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] | |
dns1=$(nslookup -q=A whoami.akamai.net | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │ Request finished in 0.458ms 200 text/css | |
dns2=$(nslookup -q=A resolver.dnscrypt.org | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2] | |
dns3=$(nslookup -q=A whoami.ultradns.net | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │ Sending file. Request path: '/css/alertify.css'. Physical path: | |
curl http://ipinfo.io/$dns1/country │ '/home/king/RiderProjects/KoPlatform.VoiceApi.WebRtc/wwwroot/css/ale | |
curl http |
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
using System; | |
using System.Text.RegularExpressions; | |
public class Program | |
{ | |
public static string Extensions =".NGO|.ONG|.OOO|.XYZ|.aaa|.abb|.ac|.academy|.accountant|.ad|.adult|.ae|.aeg|.aero|.af|.afl|.africa|.ag|.agency|.ai|.aig|.airtel|.al|.alsace|.am|.amsterdam|.an|.ao|.apartments|.app|.aq|.ar|.archi|.arpa|.art|.as|.asia|.associates|.at|.au|.audio|.auto|.aw|.ax|.az|.ba|.bar|.barcelona|.bargains|.bb|.bbc|.bcn|.bd|.be|.bentley|.berlin|.best|.bf|.bg|.bh|.bi|.bible|.bike|.biz|.bj|.bl|.black|.blackfriday|.blog|.blue|.bm|.bn|.bo|.bq|.br|.brussels|.bs|.bt|.builders|.bv|.bw|.by|.bz|.bzh|.ca|.cam|.camera|.camp|.cancerresearch|.car|.cards|.cars|.cat|.cc|.cd|.center|.cf|.cg|.ch|.cheap|.christmas|.church|.ci|.ck|.cl|.click|.clothing|.cloud|.club|.cm|.cn|.co|.codes|.coffee|.college|.com|.coop|.country|.cr|.cu|.cv|.cw|.cx|.cy|.cymru|.cz|.dance|.date|.dating|.de|.desi|.design|.dev|.diet|.directory|.dj|.dk|.dm|.do|.download|.dz|.ec|.eco|.edu|.education|.ee|.eg|.eh|.email|.eng|.er|.es|.et|.eu|.eus|.events|.exa |
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
{'data': | |
['.NGO','.ONG','.OOO','.XYZ','.aaa','.abb','.ac','.academy','.accountant','.ad','.adult','.ae','.aeg','.aero','.af','.afl','.africa','.ag','.agency','.ai','.aig','.airtel','.al','.alsace','.am','.amsterdam','.an','.ao','.apartments','.app','.aq','.ar','.archi','.arpa','.art','.as','.asia','.associates','.at','.au','.audio','.auto','.aw','.ax','.az','.ba','.bar','.barcelona','.bargains','.bb','.bbc','.bcn','.bd','.be','.bentley','.berlin','.best','.bf','.bg','.bh','.bi','.bible','.bike','.biz','.bj','.bl','.black','.blackfriday','.blog','.blue','.bm','.bn','.bo','.bq','.br','.brussels','.bs','.bt','.builders','.bv','.bw','.by','.bz','.bzh','.ca','.cam','.camera','.camp','.cancerresearch','.car','.cards','.cars','.cat','.cc','.cd','.center','.cf','.cg','.ch','.cheap','.christmas','.church','.ci','.ck','.cl','.click','.clothing','.cloud','.club','.cm','.cn','.co','.codes','.coffee','.college','.com','.coop','.country','.cr','.cu','.cv','.cw','.cx','.cy','.cymru','.cz','.dance','.date','.dating','.de','. |
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
.NGO | |
.ONG | |
.OOO | |
.XYZ | |
.aaa | |
.abb | |
.ac | |
.academy | |
.accountant | |
.ad |
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
import java.util.HashSet; | |
import java.util.Iterator; | |
public class StopWords { | |
private static HashSet<String> data =new HashSet<String>(); | |
private static String[] words; | |
/** | |
* Remove all the English stop words listed in the data |