A ViewPager for Android & iOS. It also has handy features implemented to handle common use-case scenarios.
const views = [
<View><Text>View 1</Text></View>,
View 2,
import UIKit | |
import XCTest | |
class HashTableNode<T> { | |
var value: T | |
var key: String | |
var nextNode: HashTableNode? | |
init(value: T, key: String) { | |
self.value = value | |
self.key = key |
import XCTest | |
import Foundation | |
class APIService { | |
let defaultSession = URLSession(configuration: .default) | |
typealias APIServiceCompletionHandler = (Int?) -> Void | |
var urlString: String? | |
init(urlString: String) { | |
self.urlString = urlString | |
} |
package com.creedon.Nixplay; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.net.Uri; | |
import android.os.AsyncTask; | |
import android.support.media.ExifInterface; | |
import android.util.Log; |
function paresPod | |
for i in (find . -name "*.podspec") | |
echo "pod" "'"(basename "$i" ".podpsec")"'" ", :path =>" "'"(dirname "$i")"'", | |
end | |
end |
import UIKit | |
/* | |
class Person { | |
let name: String | |
init(name: String) { | |
self.name = name | |
} |
doit() { | |
echo $PWD | |
if test -e $1.jpg ; then | |
echo "already created $1" | |
else | |
echo Doing it for $1 | |
convert -size 400x400 plasma:fractal -blur 0x10 \ | |
tile_diag_source$1.jpg |
yarn add react-native-config
react-native link react-native-config
.env
files for each configuration. Ex: .env.dev
, .env.prod
, etc
Ex:API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
for i in $(seq $1 $2) | |
do | |
if test -e $i.jpg ; then | |
echo "already created $i" | |
else | |
convert -size 50x50 xc: +noise Random -virtual-pixel Tile -blur 0x5 \ | |
-auto-level -separate -background white \ | |
-compose ModulusAdd -flatten -channel G -combine +channel \ | |
-set colorspace HSB -colorspace RGB tile_diag_source.jpg |
for i in (seq 10000) | |
if test -e $i.jpg | |
echo "already created $i" | |
else | |
echo create $i | |
convert -background lightgray -fill black -size 2458x1536 -pointsize 720 -gravity center label:$i $i.jpg | |
end | |
end |