Skip to content

Instantly share code, notes, and snippets.

redVi / continents.json
Created Jan 16, 2022
Continents with phone codes
View continents.json
"continents": [
"name": "Africa",
"countries": [
"name": "Angola",
"phone": "244",
"native": "Angola",
"capital": "Luanda"
redVi / .travis.yml
Created May 16, 2021
react-native ci/cd
View .travis.yml
- os: osx
podfile: ios/Podfile
language: objective-c
osx_image: xcode12
yarn: true
cocoapods: true
redVi /
Created Apr 8, 2020 — forked from maciekish/
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/*
open /Applications/
redVi /
Created Apr 7, 2020 — forked from jsdario/
Script to clean watchman, remove node_modules, clean cache and restart packager for React Native troubleshooting.
# Stop cached listeners
watchman watch-del-all
# Remove installed modules
rm -rf node_modules
# Remove yarn meta files
rm yarn*
redVi / index.js
Created Feb 7, 2019 — forked from isRuslan/index.js
JS: find one unique value from duplicate array
View index.js
Given the array of IDs, which contains many duplicate integers
and one unique integer, find the unique integer.
// O(n^2): loop in loop
function find_unique_brute (array) {
var result = null, n = array.length;
redVi / gist:04ace75b96f7408e220fe6bb971a85cc
Created Sep 29, 2017 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
View gist:04ace75b96f7408e220fe6bb971a85cc
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
redVi / verbs.tex
Last active Aug 29, 2015
English verbs. Mind map.
View verbs.tex
\usepackage[utf8]{inputenc} % UTF-8
\usepackage{tikz} % include TikZ
\usetikzlibrary{mindmap, trees, shadows} % TikZ library
\usepackage{color} % you may define RGB colors
redVi / i18n_filter.rb
Last active Jun 24, 2020
Jekyll localization. Author unknown.
View i18n_filter.rb
require 'i18n'
LOCALE = 'ru'
module Jekyll
module I18nFilter
def localize(input, format=nil)
format = (format =~ /^:(\w+)/) ? $1.to_sym : format
I18n.l input, :format => format, :locale => LOCALE
redVi / sitemap.xml
Created Feb 19, 2014
sitemap of jekyll blog
View sitemap.xml
layout: none
priority: 1.0
changefreq: weekly
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="" xsi:schemaLocation="" xmlns="">
{% for post in site.posts %}
redVi / ru.yml
Created Nov 13, 2013
localization file for Jekyll (_locales/ru.yml)
View ru.yml
- Вс
- Пн
- Вт
- Ср
- Чт
- Пт
- Сб