Skip to content

Instantly share code, notes, and snippets.

View kiknaio's full-sized avatar
🦄
Working remotely

George Kiknadze kiknaio

🦄
Working remotely
View GitHub Profile
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
@kiknaio
kiknaio / object-to-array.js
Last active August 31, 2016 17:55
Turning object into an array - JavaScript
let persons = {
"George Kiknadze" : {
"name" : "George",
"lasntame" : "Kiknadze"
},
"Luka Kiknadze" : {
"name" : "Luka",
"lastname" : "Kiknadze"
}
};
@kiknaio
kiknaio / datalists.html
Created September 1, 2016 17:41
HTML5 Datalists for suggesting completion
<form>
<input list='countries'> <!-- input list name and datalist id should be same -->
<datalist id='countries'>
<option value="Germany"></option>
<option value="Austria"></option>
<option value="London"></option>
<option value="Belgium"></option>
<option value="Brazil"></option>
</datalist>
</form>
@kiknaio
kiknaio / index.html
Last active January 8, 2017 11:35 — forked from anonymous/index.html
FreeCodeCamp - Advanced challenge
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@kiknaio
kiknaio / app.jsx
Created February 17, 2017 17:47
React WesBos
import React from 'react';
const ReactDOM = require('react-dom');
import {Router, Route, History, Navigation} from 'react-router';
import helpers from './helpers';
// For changing navbar link and remove hashes
import createBrowserHistory from 'history/lib/createBrowserHistory';
// App
@kiknaio
kiknaio / app.js
Created February 18, 2017 23:14
How to make guestbook with Express.js (part 1)
const express = require('express');
const morgan = require('morgan');
const bodyParser = require('body-parser');
// Define port for the server
const PORT = 3000;
const app = express();
// Require routes
const routes = require('./routes/routes');
@kiknaio
kiknaio / i18n-express4-cookie-example.js
Created November 10, 2017 20:37 — forked from mashpie/i18n-express4-cookie-example.js
i18n-express4-cookie-example
@kiknaio
kiknaio / npm-permission.sh
Last active April 29, 2019 19:40
Fix NPM permission problem
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
@kiknaio
kiknaio / books.md
Created November 13, 2019 12:36
Books to read from Rain Geometric ☔️ team
@kiknaio
kiknaio / ping_sweep.sh
Created March 23, 2020 06:29
Ping sweep with bash
#!/bin/sh
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done