Skip to content

Instantly share code, notes, and snippets.

View Rastopyr's full-sized avatar
🎯
Focusing

Rastopyr

🎯
Focusing
  • Kyiv
View GitHub Profile
let childProcess = require('child_process');
function createHandler(commands) {
return new Proxy(function() {}, {
get(target, property) {
return createHandler(commands.concat(property));
},
apply(target, context, args) {
return new Promise((resolve, reject) => {
let command = commands.concat(args).join(' ');
@askd
askd / checklist.md
Created July 3, 2018 10:43
Чеклист спикера

Общее

  1. Представься: краткая информация о себе – имя, место работы, чем занимаешься, можно фото для тех, кто будет смотреть слайды отдельно
  2. План доклада: несколько пунктов (лучше не более 5) о чём будет доклад. Это могут быть главы доклада (кстати, составление плана может помочь грамотнее структурировать доклад ещё при создании)
  3. Зачем: кратко рассказать, чем то, о чем рассказываешь в докладе, может быть полезно остальным – и разработчикам, и руководителям, и клиентам (можно акцентироваться на аудитории конкретной конфы – например если там есть дизайнеры, бэкенды, то упомянуть, что они могут узнать из доклада)
  4. Итоги: в конце доклада ещё раз пройтись по плану и подвести итог по каждому пункту – что узнали, чему научились
  5. Контакты: как слушатель и тот кто смотрит слайды может связаться и задать вопрос

Оформление

@A-gambit
A-gambit / ReactiveConf2017.md
Last active June 19, 2021 16:57
Proposal for lightning talk at ReactiveConf 2017: How do you make friends with React and FRP? 🤔 Start to develop your application using Focal.

How do you make friends with React and FRP? 🤔 Start to develop your application using Focal.

This is a CFP for the ⚡️Lightning⚡️ talk at awesome ReactiveConf 2017. If you'd like to see this talk, please 🌟 star🌟 this summary and retweet my tweet 🙂 #ReactiveConf

image

Functional reactive programming (FRP) is very popular nowadays. The JavaScript community provides us with excellent tools like RxJS, Bacon, and Kefir. But, as we know, they have nothing to do with React. So how we can use the power of FRP in our React application? Using the correct state management, we can make friends with FRP and React and make our application truly reactive. In my lightning talk, I will talk about Focal

@jasongilman
jasongilman / atom_clojure_setup.md
Last active May 11, 2024 02:25
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

@roman01la
roman01la / like2fav.js
Created November 3, 2015 19:19
like2fav
function like2fav() {
function style(selector) {
return selector + '{ color: #ffac33 !important; }';
}
var s = document.createElement('style');
s.innerText = style('.ProfileTweet-action--favorite.withHeartIcon .ProfileTweet-actionButton:hover');
s.innerText += style('.favorited .ProfileTweet-action--favorite.withHeartIcon .ProfileTweet-actionButtonUndo');
s.innerText += style('.ProfileTweet-action--favorite.withHeartIcon .ProfileTweet-actionCount:hover');
@ctolsen
ctolsen / curl_to_ab.py
Last active June 3, 2024 11:59
"Copy to cURL" in Chrome to Apache Bench command
#!/usr/bin/env python3
import sys
import os
def curl_to_ab(curl_cmd: list, num: int=200, cur: int=4) -> str:
"""
Translate a cURL command created by Chrome's developer tools into a
command for ``ab``, the ApacheBench HTTP benchmarking tool.
@edbond
edbond / comment.cljs
Created August 29, 2015 21:16
Render React component from Om
(ns nhchat.components.comment
(:require [om.core :as om]
[om-tools.core :refer-macros [defcomponent]]
[sablono.core :refer-macros (html)]))
(enable-console-print!)
(defcomponent wrapper [{:keys [comment]} owner]
(render [_]
(html [:div]))
@listochkin
listochkin / перспективы-роста.md
Created August 12, 2015 14:58
Перспективы Роста

On 8/12/15, at 5:18 PM, XXX wrote:

Коллеги вопрос. Вот я тут у нас повсюду прикручиваю Nagios. Проблема в том что машин не мало, а ставлю я Nagios 4 который без deb пакетов ставится, из сорсов, и у которого половина плагинов ставится wget'ом perl-скриптов с github'а, плюс еще нужно малесь конфиги подправить чтобы nrpe эти плагины подцепил. И КАК БЛЯДЬ ЭТО АДМИНИТЬ???! :) В смысле тут же даже Ansible ничем не поможет имхо. Как быть то?

On 8/12/15, at 5:18 PM, YYY wrote:

перспективы роста есть?

On 8/12/15, at 5:18 PM, XXX wrote:

меня или числа машин? )))

On 8/12/15, at 5:19 PM, YYY wrote:

@RReverser
RReverser / better-console-log.js
Last active May 9, 2019 21:07
Better console.log in Node
// UPD:
// Now available as npm module!
// Check out https://github.com/RReverser/better-log for details.
console.log = (function (log, inspect) {
return function () {
return log.apply(this, Array.prototype.map.call(arguments, function (arg) {
return inspect(arg, { depth: 1, colors: true });
}));
};
@scttnlsn
scttnlsn / core.cljs
Last active July 2, 2016 07:36
Om/Secretary nested routing
(ns nested-routing.core
(:require-macros [om.core :as om]
[secretary.core :refer [defroute]])
(:require [om.dom :as dom]
[om.core :as om]
[secretary.core :as secretary]
[goog.events :as events]
[goog.history.EventType :as EventType])
(:import goog.History))