- ####Test
directory : ./imports/startup/server/index.js
Using API
| <select> | |
| <option value="AF">Afghanistan</option> | |
| <option value="AX">Åland Islands</option> | |
| <option value="AL">Albania</option> | |
| <option value="DZ">Algeria</option> | |
| <option value="AS">American Samoa</option> | |
| <option value="AD">Andorra</option> | |
| <option value="AO">Angola</option> | |
| <option value="AI">Anguilla</option> | |
| <option value="AQ">Antarctica</option> |
| 'use strict'; | |
| // dependencies | |
| const crypto = require('crypto'); | |
| const base64Url = require('base64-url'); | |
| // dans un vrai cas d'usage, mettre en variable d'environnement ! | |
| const SECRET = "dd8a2c4fbcfbaa9940aeb830ed507f5c852681797eacaf627fc75a8c1bddf25f"; // -> 256-bit key | |
| #!/bin/bash | |
| # /!\ Make sure docker runs with the right model (model input byte for JPEG / b64) - (model for ROW) | |
| # /!\ the name (resnet50) is defined by the docker runs above, so change it for your tests with the right docker volume name | |
| # time curl -i -X POST http://localhost:8501/v1/models/resnet50:predict -H "Content-Type: application/json" -d @out64_format.json | |
| # default values | |
| TFS_URL="http://localhost:8501/v1/models" | |
| MODEL_NAME="resnet50" |
| <div class="content"> | |
| <div *ngIf="displayNotifications"> | |
| <app-notifications-list></app-notifications-list> | |
| </div> | |
| <!-- <header class="main-header main-header--details mobile-only"> | |
| <a class="main-header__back" (click)='prevPage()'> | |
| <span class="icon-keyboard_arrow_left"></span> | |
| </a> | |
| <h1 class="main-header__title main-header__title--details">{{'CAMERA_SETTING.TITLE' | translate}}</h1> | |
| </header> --> |
| {url:'stun:stun01.sipphone.com'}, | |
| {url:'stun:stun.ekiga.net'}, | |
| {url:'stun:stun.fwdnet.net'}, | |
| {url:'stun:stun.ideasip.com'}, | |
| {url:'stun:stun.iptel.org'}, | |
| {url:'stun:stun.rixtelecom.se'}, | |
| {url:'stun:stun.schlund.de'}, | |
| {url:'stun:stun.l.google.com:19302'}, | |
| {url:'stun:stun1.l.google.com:19302'}, | |
| {url:'stun:stun2.l.google.com:19302'}, |
| 1) Create a branch with the tag | |
| git branch {tagname}-branch {tagname} | |
| git checkout {tagname}-branch | |
| 2) Include the fix manually if it's just a change .... | |
| git add . | |
| git ci -m "Fix included" | |
| or cherry-pick the commit, whatever is easier | |
| git cherry-pick {num_commit} | |
| const crypto = require('crypto'); | |
| const axios = require('axios'); | |
| // FUKIN INVALID SIGNATURE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| ( async () => { | |
| /* | |
| // USING PROD ? | |
| const { data } = await axios.get('https://api.coinbase.com/v2/time'); |
| // Copy this into your chrome console ( when you are on the page with blur pics ) | |
| async function unblur() { | |
| const teasers = await fetch("https://api.gotinder.com/v2/fast-match/teasers", { "headers": { "X-Auth-Token": localStorage.getItem('TinderWeb/APIToken') }}).then(res => res.json()).then(res => res.data.results); | |
| const teaserEls = document.querySelectorAll('.Expand.enterAnimationContainer > div:nth-child(1)'); | |
| for (let i = 0; i < teaserEls.length; ++i) { | |
| const teaser = teasers[i]; |
| // Publish API for redis stream | |
| void send(Map<String, String> messagePayload) { | |
| StreamMessageId messageId = redisClient.getStream(streamName, new StringCodec("UTF-8")).addAll(messagePayload, maxTopicSize); | |
| log.info("Message {} was inserted to stream", messageId); | |
| } | |
| // Read API for polling redis stream | |
| List<Message> read(long maxWaitTime) { | |
| // If you are using Redis 6.2 or above, consider using XAUTOCLAIM instead of a combination of XPENDING and XCLAIM |