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
#!/usr/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
L2_COEFF = 1 | |
RATE = 10 | |
TAGIDS = Hash.new { |hash, key| hash[key] = hash.size } | |
TAGIDS['<S>'] = 0 | |
def dot(x, y) |
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
import ceylon.file { File, Path, parsePath } | |
import ceylon.io { OpenFile, newOpenFile } | |
import ceylon.io.charset { utf8, Decoder } | |
import ceylon.io.buffer { ByteBuffer } | |
import java.util { ArrayList } | |
shared void cat(String filename) { | |
Path path = parsePath(filename); | |
OpenFile file = newOpenFile(path.resource); |
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
(find-assertions (query-syntax-process '(job ?x (computer programmer))) | |
(singleton-stream '())) |
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
<?php | |
// Copyright (c) HARUYAMA Seigo | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is furnished | |
// to do so, subject to the following conditions: | |
// |
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
diff --git a/autoload/unite/filters.vim b/autoload/unite/filters.vim | |
index 0156643..d7af4f5 100644 | |
--- a/autoload/unite/filters.vim | |
+++ b/autoload/unite/filters.vim | |
@@ -158,9 +158,9 @@ do | |
local input = vim.eval('tolower(a:input)') | |
local candidates = vim.eval('a:candidates') | |
for i = #candidates-1, 0, -1 do | |
- local word = string.lower(candidates[i].action__path) | |
- or string.lower(candidates[i].word) |
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
// +build OMIT | |
package main | |
import ( | |
"errors" | |
"fmt" | |
"math/rand" | |
"sort" |
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
(unify-match 1 '(? x) | |
(singleton-stream '())) | |
(unify-match '(? x) 1 | |
(singleton-stream '())) | |
(unify-match '(? x) '(? x) | |
(singleton-stream '())) | |
;(query-syntax-process '(?x ?x)) |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <gmp.h> | |
bool check_symmetry(mpz_t i) | |
{ | |
char* s = mpz_get_str(NULL, 10, i); | |
size_t len = strlen(s); |
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
#!/bin/bash | |
##################################################################### | |
# Work-around for godeb issue | |
# assumes godeb is available using $GOPATH | |
# You can specify version on the command line, | |
# or else it will try and grab the latest | |
##################################################################### | |
set -e |
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
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*", "https://twitter.com/*", "https://www.facebook.com/*", "https://feedly.com/*"] | |
map 1G scrollToTop |