Skip to content

Instantly share code, notes, and snippets.

@gartes
gartes / storage.js
Created May 7, 2020 19:37 — forked from azjezz/storage.js
simple storage class for javascript - test included
class Storage {
static get(key) {
let value = localStorage.getItem(key);
return value === null ? null : JSON.parse(value);
}
static set(key,value) {
return localStorage.setItem(key,JSON.stringify(value));
}
@gartes
gartes / ua-cities.json
Created May 5, 2020 02:54 — forked from alex-oleshkevich/ua-cities.json
Города Украины
[
{
"name": "Украина",
"regions": [
{
"name": "Автономная Республика Крым",
"cities": [
{
"name": "Алупка",
"lat": "44.4197222",
@gartes
gartes / rwd.css
Created May 7, 2018 07:58 — forked from apzeero/rwd.css
CSS: Twitter Bootstrap Breakpoints
/* http://twitter.github.com/bootstrap/scaffolding.html#responsive */
/* Landscape phones and down */
@media (max-width: 480px) { ... }
/* Landscape phone to portrait tablet */
@media (max-width: 768px) { ... }
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 940px) { ... }
@gartes
gartes / magento unnecessary apache modules
Created May 1, 2018 07:17 — forked from zztimur/magento unnecessary apache modules
magento - apache modules that are not needed
Here is the list of apache modules which we were able to disable safely. This list is published just to give you idea, so be careful and consider your specific needs before disabling these.
Here is the list
proxy
proxy_ajp
proxy_balancer
proxy_connect
proxy_ftp
proxy_http