Skip to content

Instantly share code, notes, and snippets.

@sergeytsivin
sergeytsivin / Apple_mobile_device_types.txt
Created December 20, 2019 13:11 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
typedef DataItemTransformer = Object Function(Map<String, dynamic> item);
class HasNext<T extends Object> {
const HasNext({
this.hasNext,
this.data,
});
HasNext.fromMap(
Map<String, dynamic> map, DataItemTransformer dataItemTransformer)
@sergeytsivin
sergeytsivin / gist:d156f12653b645b1da7af9982df21573
Created February 7, 2018 12:05
INSTALL pymssql on Mac OS X
brew install freetds@0.91
If you have already installed freetds1.00 you will have to unlink it and link 0.91 instead:
brew unlink freetds
brew link --force freetds@0.91
@sergeytsivin
sergeytsivin / docker-compose.yml
Created February 7, 2018 08:13
Setting up Elasticsearch + Russian Morphology + Kibana + Postgress on Docker
version: '2'
services:
elasticsearch:
build: elasticsearch
ports:
- '127.0.0.1:9200:9200'
environment:
- xpack.security.enabled=false
kibana:
image: docker.elastic.co/kibana/kibana:5.6.7