Skip to content

Instantly share code, notes, and snippets.

View onlyshk's full-sized avatar

Kuleshov Alexander onlyshk

View GitHub Profile
{:a 1 :b 2}
'(1,2,3)
[1 2 3]
; or
[1, 2, 3]
@onlyshk
onlyshk / test.sql
Created May 29, 2012 13:52
my test file
DELETE FROM <таблица> WHERE <поле>{=,>,<,...}<значение>;
@onlyshk
onlyshk / test.sql
Created May 29, 2012 13:37
my test file
DELETE FROM <таблица> WHERE <поле>{=,>,<,...}<значение>;
DELETE FROM <таблица> WHERE <поле>{=,>,<,...}<значение>;
PokerStars Game #27738502010: Tournament #160417133, $0.25+$0.00 Hold'em No Limit - Level XV (250/500) - 2009/05/02 13:32:38 ET
Table '160417133 3' 9-max Seat #8 is the button
Seat 1: LLC 4Eva (9182 in chips)
Seat 2: 618shooter (25711 in chips) is sitting out
Seat 3: suposd2bRich (21475 in chips)
Seat 4: ElT007 (60940 in chips)
Seat 5: Orlando I (18044 in chips)
Seat 6: ih82bcool2 (8338 in chips)
Seat 7: kovilen007 (8353 in chips)
Seat 8: GerKingTiger (4404 in chips)
@onlyshk
onlyshk / NumInStr.hs
Created May 25, 2012 17:23
Is string number
isInteger :: String -> Bool
isInteger s = case reads s :: [(Integer, String)] of
[(_, "")] -> True
_ -> False
--
-- >> isInteger "3"
-- True
--
-- >> isInteger "30s"

neo4j http api

Node api:

Create empty node:

httpc:request(post, {"http://127.0.0.1:7474/db/data/node", ["application/json"], "application/json", []}, [], []). 
package proj_euler
object Problem10 {
def solve() : Long = {
var sum : Long = 0
var n = 2
while (n < 2000000){
if (is_prime(n) == true)
{
sum += n