data AnalyticsType
= Install
| Uninstall
data Analytics = {
This file contains 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
set nocompatible | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/ | |
" Always show statusline | |
set laststatus=2 |
This file contains 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
console.log(y(fact => n => | |
n === 0 ? 1 : n * fact(n - 1) | |
)(5)); // 120 |
This file contains 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 fact(n) { | |
if (n === 0) { | |
return 1; | |
} | |
return n * fact(n - 1); | |
} | |
console.log(fact(5)); // 120 |
This file contains 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
module Puzzle where | |
import Data.List | |
import System.IO | |
{- Reading and parsing the sample file -} | |
readSample :: IO String | |
readSample = openFile "sample.txt" ReadMode >>= hGetContents | |
splitWhen :: (Char -> Bool) -> String -> [String] | |
splitWhen pred str = case dropWhile pred str of |
This file contains 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
int number_size(int number) { | |
return floor(log10(abs(number))) + 1; | |
} | |
void b_show_tape(int idx, int *cells) { | |
char *tape = (char *) malloc(sizeof(char)); | |
int tape_idx = 0; | |
int brain_idx = 0; | |
int idx_position = 0; | |
int idx_length = 0; |
This file contains 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
#include <stdio.h> | |
void b_show_tape(int idx, int *cells, int size) | |
{ | |
char tape[100] = ""; | |
char str[2]; | |
int i; | |
int tape_idx = 0; | |
for (i = 0; i < size * 4 + 1; i++) { |
This file contains 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
#include <node.h> | |
namespace demo { | |
using v8::FunctionCallbackInfo; | |
using v8::Isolate; | |
using v8::Local; | |
using v8::Object; | |
using v8::String; | |
using v8::Value; |
This file contains 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
type | |
= literal | |
| instance | |
| function | |
| list | |
| map | |
| tuple | |
| object | |
| generic | |
| union |