Skip to content

Instantly share code, notes, and snippets.

View parnurzeal's full-sized avatar

Theeraphol Wattanavekin parnurzeal

View GitHub Profile
@parnurzeal
parnurzeal / template.cpp
Created November 16, 2014 10:41
C++ Coding Problem Template
#include<iostream>
#include<sstream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cctype>
#include<cstring>
#include<vector>
#include<list>
#include<queue>
package main
import (
"bufio"
"fmt"
"io"
"net"
"net/http"
)
@parnurzeal
parnurzeal / stop_chatting.js
Last active August 6, 2017 08:36
Stop api.ai from chatting
const admin = require('firebase-admin');
const auth = require('basic-auth')
const functions = require('firebase-functions');
admin.initializeApp(functions.config().firebase);
exports.webhook = functions.https.onRequest((req, res) => {
// Check if api.ai provides a correct user/pass
const credentials = auth(req);
if (!credentials || credentials.name != 'username' || credentials.pass != 'password') {
@parnurzeal
parnurzeal / .zshrc
Created June 17, 2018 03:08
My .zshrc file
##### Set PATH #####
# Homebrew
export PATH="$PATH:$HOME/homebrew/bin"
# My Bin
export PATH="$PATH:$HOME/bin"
####################
##### Add preminalry scripts & dependencies #####
# Add Homeshick
if [[ ! -d "$HOME/.homesick/repos/homeshick" ]]; then
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
@parnurzeal
parnurzeal / runApp-1.dart
Created March 23, 2020 06:18
Flutter Beginner
import 'package:flutter/material.dart';
void main() {
runApp(
Center(
child: Text(
'Hello, world!',
textDirection: TextDirection.ltr,
),
),
@parnurzeal
parnurzeal / google-sign-in-clone.markdown
Created September 2, 2025 07:13
Google Sign in Clone

Google Sign in Clone

Google sign-in clone developed using HTML CSS

Hope you like it

Do like and follow for more

A Pen by Uzair Zafar on CodePen.