View json.hs
1 2 3 4 5 6 7 8 9 10
import Control.Monad
import Control.Applicative ((*>), (<*))
import Text.Parsec
import Text.Parsec.String
import Data.List (intercalate)
 
data JSON = JString String
| JNumber Double
| JBool Bool
| JObject [(String, JSON)]
View vscode
1 2 3
#!/usr/bin/sh
 
exec ~/builds/vscode/Code "$@" >/dev/null 2>&1 &
View VS Code.desktop
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env xdg-open
 
[Desktop Entry]
Encoding=UTF-8
Name=Visual Studio Code
Path=/home/garciat/builds/vscode
Exec=/home/garciat/builds/vscode/Code
Icon=/home/garciat/builds/vscode/resources/app/vso.png
Type=Application
Name[en_US]=VS Code
View http.hs
1 2 3 4 5 6 7 8 9
import System.Environment
import System.Timeout
import Control.Monad
import Control.Concurrent
import Network.Socket
 
data Mode = Server | Client deriving (Show, Read, Eq)
 
run :: Mode -> Socket -> AddrInfo -> IO ()
View NuGet.Config
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</activePackageSource>
View mono-garciat.sh
1 2 3 4 5 6 7 8 9 10
cd ~
mkdir builds
mkdir repos
cd repos
git clone --depth 1 --branch master-fixes https://github.com/Garciat/mono.git mono-garciat
cd mono-garciat
./autogen.sh --prefix=$HOME/builds/mono-garciat
make -j6 # esto demora unos 20 minutos
make install # esto demora casi 5 minutos
echo -e "\nPATH=\$HOME/builds/mono-garciat/bin:\$PATH" >> ~/.bashrc
View Program.dnx.il
1 2 3 4 5 6 7 8 9 10
.assembly extern mscorlib
{
.ver 4:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly 'Program'
{
.custom instance void class [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::'.ctor'(int32) = (01 00 08 00 00 00 00 00 ) // ........
 
.custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() = (
View rx.speech.js
1 2 3 4 5 6 7 8 9 10
function beginSpeechRecognition(options) {
options = options || {};
var engine = new webkitSpeechRecognition();
Object.keys(options).forEach(function (key) {
engine[key] = options[key];
});
engine.start();
Something went wrong with that request. Please try again.