-
Install the the
shadowsocks-libevpackage from apt repository.sudo apt update sudo apt install shadowsocks-libev -
Save
ss.jsonas/etc/shadowsocks-libev/config.json.
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
| // SmoothScroll v0.9.9 | |
| // Licensed under the terms of the MIT license. | |
| // People involved | |
| // - Balazs Galambosi: maintainer (CHANGELOG.txt) | |
| // - Patrick Brunner (patrickb1991@gmail.com) | |
| // - Michael Herf: ssc_pulse Algorithm | |
| $ = jQuery.noConflict(); | |
| function ssc_init(){if(!document.body)return;var e=document.body;var t=document.documentElement;var n=window.innerHeight;var r=e.scrollHeight;ssc_root=document.compatMode.indexOf("CSS")>=0?t:e;ssc_activeElement=e;ssc_initdone=true;if(top!=self){ssc_frame=true}else if(r>n&&(e.offsetHeight<=n||t.offsetHeight<=n)){ssc_root.style.height="auto";if(ssc_root.offsetHeight<=n){var i=document.createElement("div");i.style.clear="both";e.appendChild(i)}}if(!ssc_fixedback){e.style.backgroundAttachment="scroll";t.style.backgroundAttachment="scroll"}if(ssc_keyboardsupport){ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(e,t,n,r){r||(r=1e3);ssc_directionCheck(t,n);ssc_que.push({x:t,y:n,lastX:t<0?.99:-.99,lastY:n<0?.99:-.99,start:+(new Date)});if(ssc_pending){return |
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
| /* | |
| |----------------------------------------------------------------------- | |
| | With HTML | |
| |----------------------------------------------------------------------- | |
| */ | |
| <input | |
| type="number" | |
| id="userProvidedHeight" | |
| min="211" |
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.Threading; | |
| static class Program { | |
| static void Main() { | |
| Console.Write("Performing some task... "); | |
| using (var progress = new ProgressBar()) { | |
| for (int i = 0; i <= 100; i++) { | |
| progress.Report((double) i / 100); |
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.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using ZetaProducerHtmlCompressor.Internal; | |
| namespace PmdWebsite.Helpers.ActionFilters |
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
| { | |
| ... | |
| ServicePointManager.ServerCertificateValidationCallback = | |
| delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { | |
| return true; | |
| }; | |
| smtpclient.Send(); | |
| ... | |
| } |
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
| <#@ template language="C#" hostspecific="true" #> | |
| <#@ import namespace="System.IO" #> | |
| <#@ import namespace="System.Text.RegularExpressions" #> | |
| <#@ output extension=".txt" #> | |
| //------------------------------------------------------------------------------ | |
| // <auto-generated> | |
| // This code was generated by a tool. | |
| // Runtime Version:4.0.30319.42000 | |
| // |
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 class NumericTextBox : TextBox | |
| { | |
| private const char Delete = (char)8; | |
| private const char Backspace = '\b'; | |
| public bool IsNumeric { get; set; } = false; | |
| public new string Text | |
| { | |
| get { return IsNumeric ? base.Text?.Replace(",", "") : base.Text; } |
OneWayToSource Binding seems broken in .NET 4.0
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
| namespace Optimization.Custom | |
| { | |
| using System.Collections.Generic; | |
| using System.Web; | |
| using System.Text; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using System.Web.Routing; | |
| /// <summary> |