Doing stuff in a terminal:
mkdir test
cd test
php -d memory_limit=-1 /usr/local/bin/composer require sylius/sylius
The output contains the following lines:
import React, { Component } from 'react'; | |
import { | |
View, Text, TextInput, Image, ActivityIndicatorIOS, | |
StyleSheet | |
} from "react-native"; | |
import Button from "react-native-button"; | |
import NavigationBar from 'react-native-navbar'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
var Swiper = require('react-native-swiper') |
"scripts": { | |
"start": "node node_modules/react-native/local-cli/cli.js start --reset-cache", | |
"reset": "rm -rf node_modules/ && npm cache clear && watchman watch-del-all && npm i", | |
"testflight": "fastlane beta", | |
"android-device": "adb reverse tcp:8081 tcp:8081 && react-native run-android", | |
"lint": "jslint **.js", | |
"test": "jest", | |
"generate-apk": "cd android && ./gradlew assembleRelease && open ./app/build/outputs/apk/", | |
"install-apk": "cd android && ./gradlew installRelease" | |
}, |
killall node | |
killall Terminal | |
killall Xcode | |
kill -9 $(pgrep Electron) | |
kill -9 $(pgrep Simulator) |
#pragma mark - Placeholder Templates | |
- (void)getLocalizableSampleTemplateForComplication:(CLKComplication *)complication withHandler:(void(^)(CLKComplicationTemplate * __nullable complicationTemplate))handler { | |
// This method will be called once per supported complication, and the results will be cached | |
if(complication.family == CLKComplicationFamilyModularSmall) { | |
CLKComplicationTemplateModularSmallSimpleText* template = [[CLKComplicationTemplateModularSmallSimpleText alloc] init]; | |
template.textProvider = [CLKSimpleTextProvider textProviderWithText:@"10.000"]; | |
handler(template); | |
} else if(complication.family == CLKComplicationFamilyModularLarge) { |
#pragma mark - Timeline Population | |
- (void)getCurrentTimelineEntryForComplication:(CLKComplication *)complication withHandler:(void(^)(CLKComplicationTimelineEntry * __nullable))handler { | |
ExtensionDelegate* myDelegate = (ExtensionDelegate*)[[WKExtension sharedExtension] delegate]; | |
if (complication.family == CLKComplicationFamilyModularSmall) { | |
[myDelegate fetchRate:^(NSDictionary * data, NSError * _Nullable error) { |
func getExistingAddressId(tx *sql.Tx, address string) (int64, error) { | |
var result sql.NullInt64 | |
if err := tx.QueryRow("SELECT id FROM wallet WHERE `address`=?", address). | |
Scan(&result); err != nil && err != sql.ErrNoRows { | |
return 0, err | |
} | |
return result.Int64, nil | |
} |
#!/usr/bin/env bash | |
# (C) 2020 Hagen Huebel, ITinance GmbH https://itinance.com, dedified GmbH https://dedified.io | |
# All rights reserved. | |
# fix-swagger-models | |
# swaggo/swag has a bug that will prevent renaming of Models from "model.Account" ino "Account" | |
# we are going to fix this generation with this command | |
# the "-i ''" is a fix for sed required on Mac to avoid the auto-creation of backup-files |
# (C) 2020 Hagen Huebel, ITinance GmbH https://itinance.com, dedified GmbH https://dedified.io | |
# All rights reserved. | |
VersionFile=VERSION | |
VERSION=`cat $(VersionFile)` | |
start: | |
docker-compose up -d | |
stop: |
Doing stuff in a terminal:
mkdir test
cd test
php -d memory_limit=-1 /usr/local/bin/composer require sylius/sylius
The output contains the following lines:
const ethers = require('ethers'); | |
const API_KEY = 'YOUR_INFURA_APIKEY'; | |
// The Contract interface | |
const abi = [ | |
"function tokenURI(uint256 _tokenId) external view returns (string)", | |
]; | |
// the contract interface | |
const contractAddress = "0x2f3ee0ace02c71bc82863a28633c0f983a5435bb"; |