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
| class KeyValueStoreCache | |
| { | |
| class CachedValue | |
| { | |
| private Int64 rawLastUpdate; | |
| internal volatile string Value; | |
| internal DateTime LastUpdate | |
| { | |
| get | |
| { |
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.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Xunit; | |
| using Xunit.Abstractions; | |
| using Xunit.Runners; | |
| using log4net; |
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
| # Default keybindings: https://raw.githubusercontent.com/mpv-player/mpv/master/etc/input.conf | |
| PGDWN playlist-next | |
| PGUP playlist-prev | |
| n playlist-next | |
| p playlist-prev | |
| ENTER cycle fullscreen | |
| RIGHT seek 3 | |
| LEFT seek -3 | |
| CTRL+RIGHT seek 10 |
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
| APP_NAME = My Company's Git Server | |
| RUN_USER = git | |
| RUN_MODE = prod | |
| [database] | |
| DB_TYPE = sqlite3 | |
| HOST = 127.0.0.1:3306 | |
| NAME = gogs | |
| USER = root | |
| PASSWD = |
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
| [TestMethod] | |
| public void testDatFail() | |
| { | |
| var roll = 4.34 - 0.23; //4.11 | |
| Assert.IsTrue(4.11 <= roll); //BAM!! | |
| } | |
| [TestMethod] | |
| public void testDatOK() | |
| { |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <key name="Software"> | |
| <key name="ConEmu"> | |
| <key name=".Vanilla" modified="2021-03-07 11:26:51" build="210304"> | |
| <value name="Language" type="string" data="en"/> | |
| <value name="StartType" type="hex" data="02"/> | |
| <value name="CmdLine" type="string" data=""/> | |
| <value name="StartTasksFile" type="string" data=""/> | |
| <value name="StartTasksName" type="string" data="{Shells::cmd}"/> | |
| <value name="StartFarFolders" type="hex" data="00"/> |
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 | |
| # DIRNAME=`which dirname` | |
| # SCRIPT_LOCATION=$0 | |
| # SCRIPT_DIR=`dirname "$SCRIPT_LOCATION"` | |
| usage() { | |
| cat <<EOM | |
| Helper to manage the Shipyard docker |
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
| [user] | |
| name = DUONG Phu-Hiep | |
| email = [email protected] | |
| [core] | |
| autocrlf = true | |
| editor = code | |
| precomposeunicode = true | |
| ignorecase = false | |
| excludesfile = | |
| [alias] |
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
| function printCardForm($moneyInToken, $cssUrl = '', $language = 'fr') | |
| { | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, WEBKIT_SITE . "?moneyintoken=" . $moneyInToken . '&p=' . urlencode($cssUrl) . '&lang=' . $language); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //true | |
| $server_output = curl_exec($ch); | |
| if (curl_errno($ch)) { | |
| die('curl_err : ' . curl_error($ch)); |
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
| /* | |
| * Redirect using javascript. work only with empty DOM, nothing should be written to the DOM when calling this function | |
| */ | |
| static function redirectWithPostParams($url, $params){ | |
| echo " | |
| <html><body onload='document.frm.submit()'> | |
| <form action='$url' method='post' name='frm'>"; | |
| foreach ($params as $key => $value) { | |
| echo "<input type='hidden' name='".htmlentities($key)."' value='".htmlentities($value)."'>"; |