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
| FROM postgres:10-alpine | |
| RUN apk add --no-cache git make gcc g++ curl-dev && \ | |
| git clone --depth 1 https://github.com/zombodb/zombodb.git && \ | |
| cd zombodb && \ | |
| make install && \ | |
| cd .. && \ | |
| rm -rf zombodb && \ | |
| apk del git make gcc g++ |
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
| CREATE EXTENSION zombodb; | |
| CREATE TABLE "ircMessages" ( | |
| "id" uuid PRIMARY KEY, | |
| "serverId" character varying NOT NULL, | |
| "from" character varying NOT NULL, | |
| "to" character varying NOT NULL, | |
| "kind" character varying NOT NULL, | |
| "createdAt" timestamptz NOT NULL, | |
| "text" zdb.fulltext NOT NULL, |
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
| from multiprocessing import Process | |
| from math import ceil | |
| from time import sleep | |
| from random import random | |
| WORKERS = 4 | |
| URLS = [ | |
| "amazon.com", | |
| "ebay.com", |
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
| set statusline= | |
| " Path and line number. | |
| set statusline+=%f\:%l | |
| " Modified and readonly flags. | |
| set statusline+=\ %m%r | |
| " Right align. | |
| set statusline+=%= | |
| " Current tag. | |
| set statusline+=%{tagbar#currenttag('[%s]\ ','\ ','f')} | |
| " Filetype. |
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
| from time import sleep | |
| from sys import argv | |
| from pymouse import PyMouse | |
| try: | |
| seconds = int(argv[1]) | |
| except IndexError: | |
| exit("Specify seconds!") |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am daGrevis on github. | |
| * I am dagrevis (https://keybase.io/dagrevis) on keybase. | |
| * I have a public key whose fingerprint is 2177 F4D9 3FF0 44D7 9C06 B98D C9D2 E5ED 8C4E A01A | |
| To claim this, I am signing this object: |
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
| (ns counter.core | |
| (:require [om.core :as om :include-macros true] | |
| [om.dom :as dom :include-macros true])) | |
| (enable-console-print!) | |
| (def app-state (atom {:count 2})) | |
| (defn square | |
| ([x] (* x x)) |
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
| (ns counter.core | |
| (:require [om.core :as om :include-macros true] | |
| [om.dom :as dom :include-macros true])) | |
| (enable-console-print!) | |
| (def app-state (atom {:count 42})) | |
| (defn dec-button [counter owner] | |
| (reify |
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
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("news.ycombinator.com") { | |
| td[bgcolor="#ff6600"] { | |
| background-color: #efefef !important; | |
| border-radius: 4px; | |
| } | |
| a[href="news"] { |
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
| / | |
| (?:(\w+)\:?\/\/)? # Protocol | |
| ([^\/?]+) # Optional subdomains, domain and TLD | |
| \/? # Traling slash | |
| ([^\?]*) # Path | |
| ([^\#]*) # Query | |
| (\#?.*) # Fragment | |
| /xu | |
| # http://regex101.com/r/oV5tN9 |