Skip to content

Instantly share code, notes, and snippets.

View alexmnv's full-sized avatar

Alexandr Motuzov alexmnv

View GitHub Profile
@alexmnv
alexmnv / redux-saga - custom IO example
Last active March 20, 2022 21:04
redux-saga - runSaga() example with custom IO, using node.js EventEmitter
const { runSaga } = require('redux-saga')
const { takeEvery, select } = require('redux-saga/effects')
const EventEmitter = require('events').EventEmitter
//
// Create Saga IO:
//
const createSagaIO = (emitter, getStateResolve) => ({
// this will be used to resolve take Effects
subscribe: (callback) => {
@yahuarkuntur
yahuarkuntur / app.php
Created October 29, 2012 22:25
Silex logout URL
$app['security.firewalls'] = array(
'login' => array(
'pattern' => '^/login$',
'anonymous' => true,
),
'admin' => array(
'pattern' => '^/admin',
'form' => array(
'login_path' => '/login',
'check_path' => '/admin/login_check'),
@jedsundwall
jedsundwall / gist:586144
Created September 18, 2010 23:00
CSS to add commas to items in an unordered list without leaving a comma hanging at the end of the list
ul.tags {
display: inline;
margin: 0;
padding: 0;
}
ul.tags li {
display: inline;
list-style: none;
margin: 0;