Skip to content

Instantly share code, notes, and snippets.

View A1ik's full-sized avatar

A1ik

  • React / React Native Developer
  • Ukraine
View GitHub Profile
@A1ik
A1ik / redux_saga.md
Created June 22, 2021 10:00 — forked from nikneroz/redux_saga.md
Лекция №3: Redux-Saga
API_CALL_REQUEST описывает что мы начинаем процесс получения данных с API
API_CALL_SUCCESS описывает что store успешно получил данные и процесс получения данных завершен
API_CALL_FAILURE описывает что API вызов завершился ошибкой
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@A1ik
A1ik / py2neo_nodes_rels.py
Created November 14, 2016 19:22 — forked from MarneeDear/py2neo_nodes_rels.py
py2neo v3 create nodes and relationships
from py2neo import Node, Graph, Relationship, PropertyDict
from db.types import GraphLabel, GraphRelationship
graph_url = 'http://localhost:7474/db/data/'
graph_db = Graph(graph_url)
# delete everything
graph_db.delete_all()
@A1ik
A1ik / sip.py
Last active August 29, 2015 14:17 — forked from xiujie-jiang/sip.py
#-*- coding:utf-8 -*-
import re
import sys
import socket
import httplib
try:
import simplejson as json
except ImportError: