Skip to content

Instantly share code, notes, and snippets.

View Babunashvili's full-sized avatar
🏠
Working from home

David Babunashvili Babunashvili

🏠
Working from home
View GitHub Profile
@madcoda
madcoda / App.js
Created May 28, 2017 04:24
React-router v4 multi layout
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom'
import OverviewPage from './page/OverviewPage'
import AccountPage from './page/AccountPage'
/*
Layouts, inline define here for demo purpose
you may want to define in another file instead
*/
@cbilgili
cbilgili / crud-saga.js
Created December 27, 2016 08:59
Redux CRUD Saga (redux-saga)
import { takeLatest } from 'redux-saga'
import { call, put } from 'redux-saga/effects'
import fetch from 'isomorphic-fetch'
import * as actions from './modules/grid'
import * as api from '../lib/api'
export function* fetchGrids(action) {
try {
const grids = yield call(api.GET, 'grids')
yield put(actions.fetchGridsSuccess(grids))
@Stichoza
Stichoza / ხელოსნები.md
Last active March 30, 2024 12:22
ხელოსნები
  • ელექტროობა, დიაგნოსტიკა - იურა 555566484 - დიღმის მასივში, ასტრა დიღომში;
  • ელექტროობა, დიაგნოსტიკა - ზაზა 599730481 - საბურთალოზე, შარტავაზე საბურთალოს ბაზრთან (ყოფილი) მშენებარე ობიექტია და იმ ტერიტორიაზეა. გვერდით სამრეცხაოც არის;
  • ელექტროობა, დიაგნოსტიკა - გურამი 593214435 - "ნახალოკაში";
  • ელექტროობა, დიაგნოსტიკა - იგორი - "Opel"-ის ყოფილ სერვის ცენტრში - ელიავაზე;
  • ელექტროობა - არტურა 599656090 - ორთაჭალაში სამშობიაროს რო გაცდები მარცხნივ მწვანე კარებია და მანდ მუშაობს;
  • ელექტროობა - არტურა 593223950 - მანქანაზე "პერებოის" გარანტიით გასწორება, შეუძლია შეამოწმოს ყველაფერი (მანქანა ცივი უნდა იყოს) - მუშაბს მარჯვენა სანაპიროზე, დიღმის მასივიდან რომ არის ჩასასვლელი, ბოქსებს დაინახავთ, მანდ სამრეცხაოებიც არის;
  • ელექტროობა - ნიკო და ზურა 599789053 - ველოტრეკზე (მერსედესის ცენტრამდე);
  • ელექტროობა, დიაგნოსტიკა Star C3-ის აპარატით - რობო 568775999 - დიდუბეში აკვაპარკის ჩასახვევში პირველივე პროფელაქტიკა;
  • ელექტროობა - ედიკა 599601454;
  • ელექტროობა - ზვიადი 599540517 - დიღომში ყოფილ ავტობაზრობასთან. მუშაობ
@shavidzet
shavidzet / 000-abc.markdown
Last active April 29, 2016 00:01
Set date limit for particular product

Date differences and limiter

I have developed this gist to make easy your tasks when you need to work on times function in php

You can simply make a limit where you want and what you want.

For example:
If you have shopping web-site and you want to make a date limit for specific product, Yeaaah, I have already developed this function for you!
@tanerdogan
tanerdogan / web.config
Created April 20, 2016 13:18
Slim Framework IIS URL Rewrite Config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="slim" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@learncodeacademy
learncodeacademy / webpack.config.js
Created January 8, 2016 03:55
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@sebmarkbage
sebmarkbage / Enhance.js
Last active January 31, 2024 18:33
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@AdamMarsden
AdamMarsden / sassas.md
Last active July 14, 2024 04:22
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@erichurst
erichurst / US Zip Codes from 2013 Government Data
Created December 9, 2013 23:00
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
00622,17.991245, -67.153993
@dg
dg / websocket.html
Created August 11, 2013 15:54
WebSocket communication between PHP and single client
<!doctype html>
<script>
if ("WebSocket" in window) {
var ws = new WebSocket("ws://127.0.0.1:31339");
ws.onopen = function() {
console.log('connected');
};
ws.onerror = function(e) {