Skip to content

Instantly share code, notes, and snippets.

kOrriO korrio

Block or report user

Report or block korrio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View form.js
var request = require("request");
var options = { method: 'POST',
url: 'https://docs.google.com/forms/d/e/1FAIpQLScBMroTKKbtZyPCoq3E6-B0Lb5T1xZjCkWFkCKUUfXUyAtKww/formResponse',
headers:
{ 'postman-token': 'c76b2ee5-ecc0-2152-dd3f-b7229ef67ac4',
'cache-control': 'no-cache',
'x-chrome-connected': 'id=113128144948758807411,mode=0,enable_account_consistency=false,consistency_enabled_by_default=false',
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'sec-fetch-user': '?1',
View topdf.php
<?php
session_start();
if($_SESSION['open'])
{
header("Content-type:application/pdf");
header("Cache-Control: maxage=1");
header("Pragma: public");
//if(ae_detect_ie())
//{
View _export_pdf.php
<?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Methods: GET,POST, OPTIONS");
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
session_start();
$_SESSION['open'] = true;
//Get data of damage result
View nuxt.config.js
import colors from 'vuetify/es5/util/colors'
export default {
mode: 'universal',
/*
** Headers of the page
*/
head: {
titleTemplate: `%s - ${process.env.npm_package_name}`,
title: process.env.npm_package_name || '',
View claims.json
{
"_id" : ObjectId("5cff7f7015d7f12e5147d316"),
"claim" : "TEST CLAIM",
"description" : "<p>TEST DESC</p>",
"claim_date" : "2019-12-12T06:00:00.000Z",
"claim_source" : "https://imgs.mcot.net/images/2018/07/1530712595902.jpg",
"checked_date" : "2019-01-15T06:00:00.000Z",
"review_sources" : "https://tna.mcot.net/view/5b3cd054e3f8e4f60986174f",
"review" : "TEST REVIEW",
"client_id" : "Factly",
@korrio
korrio / Dockerfile
Created Aug 3, 2019
sure-web Dockerfile
View Dockerfile
# base node image
FROM node:10
WORKDIR /usr/src/app
ENV PORT 8080
ENV HOST 0.0.0.0
COPY package*.json ./
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
@korrio
korrio / libraservice.py
Last active Jul 4, 2019
libraservice.py
View libraservice.py
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask_httpauth import HTTPBasicAuth
import simplejson as json
from pylibra import LibraClient, LibraWallet
from pylibra.transaction import TransferTransaction
app = Flask(__name__, static_url_path = "")
@app.route('/createWallet', methods = ['GET'])
View iri.json
{"nodes":[{"id":107695,"label":"BuraphaWithiR2","metadata":{"x":"13.447526","y":"100.998794"}},{"id":107696,"label":"BuraphaWithiR2","metadata":{"x":"13.447746","y":"100.998744"}},{"id":107697,"label":"BuraphaWithiR2","metadata":{"x":"13.447965","y":"100.998693"}},{"id":107698,"label":"BuraphaWithiR2","metadata":{"x":"13.448185","y":"100.998643"}},{"id":107699,"label":"BuraphaWithiR2","metadata":{"x":"13.448405","y":"100.998594"}},{"id":107700,"label":"BuraphaWithiR2","metadata":{"x":"13.448625","y":"100.998544"}},{"id":107701,"label":"BuraphaWithiR2","metadata":{"x":"13.448846","y":"100.998495"}},{"id":107702,"label":"BuraphaWithiR2","metadata":{"x":"13.449066","y":"100.998444"}},{"id":107703,"label":"BuraphaWithiR2","metadata":{"x":"13.449285","y":"100.998389"}},{"id":107704,"label":"BuraphaWithiR2","metadata":{"x":"13.449502","y":"100.998332"}},{"id":107705,"label":"BuraphaWithiR2","metadata":{"x":"13.449721","y":"100.998279"}},{"id":107706,"label":"BuraphaWithiR2","metadata":{"x":"13.449938","y":"100.9982
View decodeMRZDigit.js
function decodeMRZDigit(ch) {
switch (ch) {
case '<':
case '0': return 0; case '1': return 1; case '2': return 2;
case '3': return 3; case '4': return 4; case '5': return 5;
case '6': return 6; case '7': return 7; case '8': return 8;
case '9': return 9;
case 'a': case 'A': return 10; case 'b': case 'B': return 11;
case 'c': case 'C': return 12; case 'd': case 'D': return 13;
case 'e': case 'E': return 14; case 'f': case 'F': return 15;
You can’t perform that action at this time.