Skip to content

Instantly share code, notes, and snippets.

View iammarkps's full-sized avatar

Possawat Suksai iammarkps

View GitHub Profile
@iammarkps
iammarkps / keybase.md
Created December 2, 2020 09:39
keybase.md

Keybase proof

I hereby claim:

  • I am iammarkps on github.
  • I am iammark08 (https://keybase.io/iammark08) on keybase.
  • I have a public key whose fingerprint is 53A3 3AB3 7917 8B1A 9ED1 1555 3490 5D4A 557B 7598

To claim this, I am signing this object:

@iammarkps
iammarkps / group.ts
Last active April 28, 2020 08:10
programming.in.th typing
interface IGroup {
status: IStatus[]
score: number
fullScore: number
}
#include <bits/stdc++.h>
#define long long long
using namespace std;
int age, children, parents, disabled;
long income;
char name[100], input;
@iammarkps
iammarkps / backup.js
Created October 13, 2019 14:25
programming.in.th | Tasks Backup
const admin = require('firebase-admin')
const fs = require('fs')
const serviceAccount = require('./grader-ef0b5-c147bbe98312.json')
admin.initializeApp({ credential: admin.credential.cert(serviceAccount) })
const db = admin.firestore()
const taskDocRefs = db.collection('tasks').orderBy('difficulty')
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
"use strict";
const functions = require("firebase-functions");
const { WebhookClient, Payload } = require("dialogflow-fulfillment");
const { Card, Suggestion } = require("dialogflow-fulfillment");
process.env.DEBUG = "dialogflow:debug"; // enables lib debugging statements
package main
import (
_ "github.com/gomodule/redigo/redis"
"github.com/gorilla/sessions"
"github.com/labstack/echo"
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/middleware"
"gopkg.in/boj/redistore.v1"
"net/http"
@iammarkps
iammarkps / AuthRequired.js
Created October 14, 2018 04:29
AuthRequired
import React from 'react'
import * as fiery from 'fiery'
import { firebase } from './firebase'
import AdminPanel from './adminPanel'
export class AuthRequired extends React.Component {
render() {
return (
<fiery.Auth>
{authState =>