Skip to content

Instantly share code, notes, and snippets.

Working from home

Alex Siman siman

Working from home
Block or report user

Report or block siman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
siman /
Created Sep 17, 2019
Web3 Foundation tasks for blockchain hackathon. Kyiv, Sep 21-22, 2019.

Вознаграждение от Web3 Foundation в размере $500 получит команд(а/ы), которая предложит качественное решение на блокчейне фреймворке Substrate или же, если это решение связано с инфраструктурой Polkadot Network. В качестве примеров, могут быть проекты на такую тему:

  • Альтернативные реализации тех модулей (SRML), которые уже идут в составе Substrate. Например:
    • Упрощенный модуль для балансов "balances" без locking, vesting, etc.
    • Упрощенный модуль для голосования "voting" с квадратическим голосованием.
    • Альтернативная реализация модуля "treasury"
    • и т.д.
siman / visual-code-user-settings.json
Last active Jun 30, 2019
Visual Studio Code with Rust syntax. You need to install "dark-plus-syntax" theme before.
View visual-code-user-settings.json
"window.zoomLevel": 1,
"gitlens.settings.mode": "advanced",
"eslint.enable": false,
"files.autoSave": "onFocusChange",
"files.associations": {
"*.css": "scss"
"editor.wordWrap": "on",
"editor.renderWhitespace": "boundary",
siman / image-proxy.conf
Created Sep 24, 2018 — forked from tmaiaroto/image-proxy.conf
Nginx Image Filter Resize Proxy Service
View image-proxy.conf
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below).
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G;
# Gzip was on in another conf file of mine...You may need to uncomment the next line.
#gzip on;
gzip_disable msie6;
gzip_static on;
gzip_comp_level 4;
gzip_proxied any;
# Again, be careful that you aren't overwriting some other setting from another config's http {} section.
abrkn / index.js
Created Oct 13, 2017
View index.js
#!/usr/bin/env node
const assert = require('assert');
const { delay } = require('bluebird');
const BigNumber = require('bignumber.js');
const kraken = require('./kraken');
const {
siman / jquery-in-browser-console.js
Created Apr 20, 2017
Inject jQuery into browser console
View jquery-in-browser-console.js
var script = document.createElement("script");
script.setAttribute("src", "//");
script.addEventListener('load', function() {
var script = document.createElement("script");
}, false);
bithavoc / postgres-notify-trigger.sql
Last active Feb 2, 2019
I used this trigger to notify table changes via NOTIFY (migrating off RethinkDB)
View postgres-notify-trigger.sql
CREATE OR REPLACE FUNCTION notify_trigger() RETURNS trigger AS $$
channel_name varchar DEFAULT (TG_TABLE_NAME || '_changes');
PERFORM pg_notify(channel_name, '{"id": "' || || '"}');
PERFORM pg_notify(channel_name, '{"id": "' || || '"}');
ricardo-rossi /
Last active Sep 9, 2019
Installing ElasticSearch on Ubuntu 14.04
### ./ 1.7 will install Elasticsearch 1.7
### ./ will fail because no version was specified (exit code 1)
### CLI options Contributed by @janpieper
### Check for latest version of ElasticSearch
guersam / AutoProductFormat.scala
Last active Mar 8, 2017
Macro-based json format generator for spray-json (
View AutoProductFormat.scala
package spray.json
import scala.language.experimental.macros
trait AutoProductFormat extends DefaultJsonProtocol {
implicit def jsonFormat[T <: Product]: RootJsonFormat[T] = macro AutoProductFormatMacro.autoProductFormatMacro[T]
object AutoProductFormat extends AutoProductFormat
geetchandratre / play_scala_jade
Created Jun 4, 2013
Play 2.x + SBT + Scala + Jade
View play_scala_jade
All you need to do is,
In your SBT Dependencies add,
"de.neuland" % "jade4j" % "0.3.11" from "",
"com.googlecode.concurrentlinkedhashmap" % "concurrentlinkedhashmap-lru" % "1.3.1",
"org.apache.commons" % "commons-jexl" % "2.1.1"
You need apache libs as Jade4J uses them internally,
m242 / gist:1205631
Created Sep 9, 2011
Scala Option in JavaScript
View gist:1205631
var MyOption, Option;
Array.prototype.filter = function(f) {
var x, _i, _len, _results;
_results = [];
for (_i = 0, _len = this.length; _i < _len; _i++) {
x = this[_i];
if (f(x)) {
You can’t perform that action at this time.