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
| /** | |
| * String decoder | |
| */ | |
| export declare const string: () => Decoder<string>; | |
| /** | |
| * Number decoder | |
| */ | |
| export declare const number: () => Decoder<number>; | |
| /** | |
| * Boolean decoder |
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 R from 'ramda'; | |
| const insertAmps = R.join('&'); | |
| const insertEquals = R.map(R.join('=')); | |
| const makeKeys = R.curry((f, pairs) => { | |
| const makeKeys_ = pair => [f(pair[0]), pair[1]]; | |
| return R.map(makeKeys_, pairs); | |
| }); | |
| const encodePairs = pairs => { | |
| const encodeAll = R.map(encodeURIComponent); |
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
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
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
| fable-compiler 0.7.24: Start compilation... | |
| WORKING DIR: C:\Users\Ryan\FSharp\compile_test | |
| PROJECT FILE: .\simple.fsx | |
| OUTPUT DIR: . | |
| FABLE COMMAND: cmd /S /C "C:\Users\Ryan\AppData\Roaming\nvm\v7.3.0\node_modules\fable-compiler\bin\Fable.Client.Node.exe --projFile .\simple.fsx --outDir . --module false" | |
| F# COMPILER OPTIONS: |
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
| enkidatron [12:59 PM] | |
| Have you looked at http://package.elm-lang.org/packages/Fresheyeball/elm-animate-css/latest for handling animation? | |
| fresheyeball [12:59 PM] | |
| well its for using the pre-fabs in `animate.css` | |
| [12:59] | |
| not complex animations |
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
| % docker run kofno/scry /bin/sh -c "cd /opt/scry; crystal spec" ✹ ✭ | |
| /opt/crystal/src/llvm/ext/llvm_ext.o: In function `LLVMNewDIBuilder': | |
| llvm_ext.cc:(.text.LLVMNewDIBuilder+0x25): undefined reference to `llvm::DIBuilder::DIBuilder(llvm::Module&)' | |
| /opt/crystal/src/llvm/ext/llvm_ext.o: In function `LLVMDIBuilderCreateLexicalBlock': | |
| llvm_ext.cc:(.text.LLVMDIBuilderCreateLexicalBlock+0x8): undefined reference to `llvm::DIBuilder::createLexicalBlock(llvm::DIDescriptor, llvm::DIFile, unsigned int, unsigned int, unsigned int)' | |
| /opt/crystal/src/llvm/ext/llvm_ext.o: In function `LLVMDIBuilderGetOrCreateTypeArray': | |
| llvm_ext.cc:(.text.LLVMDIBuilderGetOrCreateTypeArray+0x5): undefined reference to `llvm::DIBuilder::getOrCreateArray(llvm::ArrayRef<llvm::Value*>)' | |
| /opt/crystal/src/llvm/ext/llvm_ext.o: In function `LLVMDIBuilderGetOrCreateArray': | |
| llvm_ext.cc:(.text.LLVMDIBuilderGetOrCreateArray+0x5): undefined refe |
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
| % docker run kofno/scry /bin/sh -c "cc -o "/root/.cache/crystal/crystal-run-spec.tmp" "${@}" -rdynamic -lz `pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `pkg-config --libs libcrypto || printf %s '-lcrypto'` /opt/crystal/src/llvm/ext/llvm_ext.o `$(command -v llvm-config-3.6 || command -v llvm-config36 || command -v llvm-config-3.5 || command -v llvm-config35 || command -v llvm-config) --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lxml2 -lpcre -lm -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib" | |
| /usr/bin/ld: warning: cannot find entry symbol arch_paths_first; defaulting to 00000000004017a0 | |
| /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': | |
| (.text+0x20): undefined reference to `main' | |
| /opt/crystal/src/llvm/ext/llvm_ext.o: In function `LLVMNewDIBuilder': | |
| llvm_ext.cc:(.text.LLVMNewDIBuilder+0x17): undefined reference to `operator new(unsigned long)' | |
| llvm_ext.cc:(.text.LLVMNewDIBuilder+0x25): undefined reference |
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
| while requiring "prelude": can't find file 'prelude' (Crystal::TypeException) | |
| [4316382962] *CallStack::unwind:Array(Pointer(Void)) +82 | |
| [4316382865] *CallStack#initialize:Array(Pointer(Void)) +17 | |
| [4316382824] *CallStack::new:CallStack +40 | |
| [4316335705] *raise<Crystal::TypeException>:NoReturn +25 | |
| [4327025633] *Crystal::Require@Crystal::ASTNode#raise<String, Nil, Crystal::TypeException:Class>:NoReturn +17 | |
| [4327025607] *Crystal::Require@Crystal::ASTNode#raise<String>:NoReturn +39 | |
| [4329247214] *Crystal::Normalizer#transform<Crystal::Require>:Crystal::ASTNode+ +990 | |
| [4327026097] *Crystal::Require@Crystal::ASTNode#transform<Crystal::Normalizer>:Crystal::ASTNode+ +49 | |
| [4329256568] *Crystal::Normalizer#normalize<Crystal::Require>:Crystal::ASTNode+ +24 |
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
| require "http/client" | |
| class AUR | |
| include HTTP | |
| def searchPackage(package, by : String = "name-desc") | |
| url = "aur.archlinux.org/rpc/?v=5&type=search&by="+ by + "&args=" + package | |
| res = Client.get url | |
| puts res | |
| end |
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
| % crystal spec ✭ | |
| Usage: crystal [command] [switches] [program file] [--] [arguments] | |
| Command: | |
| init generate a new project | |
| build build an executable | |
| deps install project dependencies | |
| docs generate documentation | |
| env print Crystal environment information | |
| eval eval code from args or standard input |