Skip to content

Instantly share code, notes, and snippets.

View darkhorse-coder's full-sized avatar
๐Ÿ 
Working from home

DarkHorse darkhorse-coder

๐Ÿ 
Working from home
View GitHub Profile
@jkereako
jkereako / ReCAPTCHAViewController.swift
Created September 8, 2020 13:15
ReCAPTCHA v2 in Swift
import UIKit
import WebKit
final class ReCAPTCHAViewController: UIViewController {
private var webView: WKWebView!
private let viewModel: ReCAPTCHAViewModel
init(viewModel: ReCAPTCHAViewModel) {
self.viewModel = viewModel
@Henriquetf
Henriquetf / .eslintrc.json
Last active December 19, 2024 13:28
React Native Typescript ESLint config
{
"env": {
"es6": true
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"plugin:import/errors",
"plugin:import/warnings",
@DmytroLisitsyn
DmytroLisitsyn / country_dial_info.json
Last active April 9, 2025 10:57 — forked from Goles/CountryCodes.json
A JSON dataset of entities containing country name, code, dial (phone) code and flag emoji icon.
[{"name":"Afghanistan","flag":"๐Ÿ‡ฆ๐Ÿ‡ซ","code":"AF","dial_code":"+93"},{"name":"ร…land Islands","flag":"๐Ÿ‡ฆ๐Ÿ‡ฝ","code":"AX","dial_code":"+358"},{"name":"Albania","flag":"๐Ÿ‡ฆ๐Ÿ‡ฑ","code":"AL","dial_code":"+355"},{"name":"Algeria","flag":"๐Ÿ‡ฉ๐Ÿ‡ฟ","code":"DZ","dial_code":"+213"},{"name":"American Samoa","flag":"๐Ÿ‡ฆ๐Ÿ‡ธ","code":"AS","dial_code":"+1684"},{"name":"Andorra","flag":"๐Ÿ‡ฆ๐Ÿ‡ฉ","code":"AD","dial_code":"+376"},{"name":"Angola","flag":"๐Ÿ‡ฆ๐Ÿ‡ด","code":"AO","dial_code":"+244"},{"name":"Anguilla","flag":"๐Ÿ‡ฆ๐Ÿ‡ฎ","code":"AI","dial_code":"+1264"},{"name":"Antarctica","flag":"๐Ÿ‡ฆ๐Ÿ‡ถ","code":"AQ","dial_code":"+672"},{"name":"Antigua and Barbuda","flag":"๐Ÿ‡ฆ๐Ÿ‡ฌ","code":"AG","dial_code":"+1268"},{"name":"Argentina","flag":"๐Ÿ‡ฆ๐Ÿ‡ท","code":"AR","dial_code":"+54"},{"name":"Armenia","flag":"๐Ÿ‡ฆ๐Ÿ‡ฒ","code":"AM","dial_code":"+374"},{"name":"Aruba","flag":"๐Ÿ‡ฆ๐Ÿ‡ผ","code":"AW","dial_code":"+297"},{"name":"Australia","flag":"๐Ÿ‡ฆ๐Ÿ‡บ","code":"AU","dial_code":"+61"},{"name":"Austria","flag":"๐Ÿ‡ฆ๐Ÿ‡น","code":"AT","dial_code":"+43"},{"name":"Azerbaijan","flag":"๐Ÿ‡ฆ๐Ÿ‡ฟ","code":"AZ","dial_code":"+9
@joshbeckman
joshbeckman / animatedScrollTo.js
Created September 30, 2013 14:51
ScrollTo animation using pure javascript and no jquery
document.getElementsByTagName('button')[0].onclick = function () {
scrollTo(document.body, 0, 1250);
}
function scrollTo(element, to, duration) {
var start = element.scrollTop,
change = to - start,
currentTime = 0,
increment = 20;