- ionic start ionicStripe blank
ionic cordova plugin add cordova-plugin-stripe
npm install --save @ionic-native/stripe
ย * import { Stripe } from '@ionic-native/stripe';
class UserPage extends React.Component { | |
static navigationOptions: { | |
header: ({state}) => ({ | |
left: (<NavBarBackButton />), | |
title: ( | |
<UserPageTitle | |
userName={state.params.userName} | |
profilePicUrl={state.params.profilePicUrl} | |
/> |
const sampleRoute = { | |
renderNavBarLeft: () => (<NavBarBackButton />), | |
renderNavBarTitle: () => (<SimplePageTitle />), | |
renderNavBarRight: () => null, | |
renderScene: () => (<SamplePage />), | |
}; | |
// navigator | |
<Navigator | |
{ ...otherPropsPassingToNavigator } |
package main | |
import ( | |
"context" | |
"encoding/json" | |
"log" | |
"net/http" | |
"github.com/google/go-github/github" | |
"golang.org/x/oauth2" | |
authentication "k8s.io/client-go/pkg/apis/authentication/v1beta1" | |
) |
Best parameters set: | |
{'kernel': 'linear', 'C': 1} | |
Confusion matrix: | |
Labels: 8531,8539,8567,8568,8599,8715,8760,8773,8777,8778,8808,8816 | |
[[ 4 0 0 0 0 0 0 0 0 0 0 0] | |
[ 0 2 0 0 0 0 0 0 0 0 0 0] | |
[ 0 0 12 0 0 0 0 0 0 0 0 0] | |
[ 0 0 0 9 0 0 0 0 0 0 0 0] |
import os | |
import sklearn | |
from sklearn import cross_validation, grid_search | |
from sklearn.metrics import confusion_matrix, classification_report | |
from sklearn.svm import SVC | |
from sklearn.externals import joblib | |
def train_svm_classifer(features, labels, model_output_path): | |
""" |
import os | |
import tensorflow as tf | |
import tensorflow.python.platform | |
from tensorflow.python.platform import gfile | |
import numpy as np | |
def create_graph(model_path): | |
""" | |
create_graph loads the inception model to memory, should be called before | |
calling extract_features. |
/* Server monitor */ | |
// require('newrelic'); | |
var mysql = require('mysql'); | |
var express = require('express'); | |
var app = express(); | |
var eventsCollection; | |
var sessionsCollection; | |
/** MySQL Settings **/ |
#!/bin/bash -e | |
# Make sure you have installed ImageMagick | |
# http://cactuslab.com/imagemagick/ | |
# Ensure we're running in location of script. | |
cd "`dirname $0`" | |
for f in *; do | |
if [[ $f == *@3x* ]]; | |
then |