I hereby claim:
- I am nagyv on github.
- I am nagyv (https://keybase.io/nagyv) on keybase.
- I have a public key ASBS9dc3poTC2gmEbZN-_wX0M-SmIGwWJ5huIaxZPQwljQo
To claim this, I am signing this object:
[preset.0] | |
name="Android" | |
platform="Android" | |
runnable=true | |
dedicated_server=false | |
custom_features="" | |
export_filter="all_resources" | |
include_filter="" | |
exclude_filter="" |
provider "postgresql" { | |
host = var.server_host | |
port = var.server_port | |
database = "postgres" | |
username = var.username | |
password = var.password | |
sslmode = var.sslmode | |
connect_timeout = 15 | |
superuser = false | |
} |
# Usage | |
# in .gitlab-ci.yml | |
# commit packages: | |
# extends: .git:push | |
# stage: deploy | |
# variables: | |
# COMMIT_MESSAGE: "Hydrated packages" | |
# script: | |
# cp -r file-to-commit/* "${CI_COMMIT_SHA}/file-to-commit/" | |
# dependencies: |
I hereby claim:
To claim this, I am signing this object:
const axios = require('axios') | |
require('dotenv').config() | |
const username = process.env.LOGIN | |
const password = process.env.PASSWORD | |
const game = process.env.GAME | |
async function jwtAuth(username, password, game, filter) { | |
const response = await axios({ | |
url: `https://auth.gamesparks.net/restv2/auth/game/${game}/jwt`, |
This is a simple example to use Nes with Schmervice in hapipal-like project.
As there might be several susbcription channels, I prefer to separate them by domain, and have a single service that handles all the even passing between different parts of the code.
Example usage:
// somewhere in a router's handler
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script> | |
// from: https://github.com/facebook/react-native/issues/11594#issuecomment-274689549 | |
function awaitPostMessage() { | |
let isReactNativePostMessageReady = !!window.originalPostMessage; | |
const queue = []; | |
let currentPostMessageFn = function store(message) { | |
if (queue.length > 100) queue.shift(); |
import React, { Component } from 'react' | |
// import PropTypes from 'prop-types'; | |
import { View } from 'react-native' | |
import { | |
H1, | |
Icon, | |
Button, | |
Text | |
} from 'native-base' | |
import Modal from 'react-native-modal' |
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:8: error: package com.learnium.RNDeviceInfo does not exist | |
import com.learnium.RNDeviceInfo.RNDeviceInfo; | |
^ | |
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:9: error: package com.lugg.ReactNativeConfig does not exist | |
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage; | |
^ | |
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:10: error: package com.microsoft.azure.mobile.react.crashes does not exist | |
import com.microsoft.azure.mobile.react.crashes.RNCrashesPackage; | |
^ | |
C:\Users\Viktor\Projects\potzak\android\app\src\main\java\com\potzak\MainApplication.java:11: error: package com.microsoft.azure.mobile.react.analytics does not exist |
A simple way to mock calls to the Mandrill API from nodejs tests. It uses the amazing mockery
package.