cd /path/to/git
heroku git:remote -a <name-of-the-app>
after that you should can run heroku run [your command]
without using --apps [name apps]
cd /path/to/git
heroku git:remote -a <name-of-the-app>
after that you should can run heroku run [your command]
without using --apps [name apps]
from flask import Flask, request | |
import re, json | |
from face_util import compare_faces, face_rec | |
app = Flask(__name__) | |
@app.route('/face_match', methods=['POST']) | |
def face_match(): | |
if request.method == 'POST': | |
# check if the post request has the file part |
adb connect localhost:21503 |
let a = document.createElement('a'); | |
a.href = "data:application/octet-stream,"+encodeURIComponent([url_image_or_document]); | |
a.download = 'myFile.json';//filename | |
a.click(); | |
//source | |
//https://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file |
git push origin [local-branch] -o merge_request.create -o merge_request.target=[target-branch]
function getRealDiscount(stringDiscount){ | |
var real_discount = 0; | |
var a = stringDiscount.split('+'); | |
for(var i=0;i<a.length;i++) | |
{ | |
var x = 100; | |
if(i != 0) | |
{ |
function cekDiskonAsli(string){ | |
var diskon_asli = 0; | |
var a = string.split('+'); | |
for(var i=0;i<a.length;i++) | |
{ | |
var x = 100; | |
if(i != 0) | |
{ |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class QuitOnBack : MonoBehaviour { | |
// Update is called once per frame | |
void Update () { | |
if (Input.GetKeyDown(KeyCode.Escape)) | |
Application.Quit(); |
using UnityEngine; | |
using Vuforia; | |
public class FocusManager : MonoBehaviour { | |
private void Start() | |
{ | |
BackToAuto(); | |
} |