Skip to content

Instantly share code, notes, and snippets.

View jukbot's full-sized avatar
🏠
Working from home

Juk - a search builder jukbot

🏠
Working from home
  • CalCal
  • Bangkok, Thailand
  • X @jukbot
View GitHub Profile
@jukbot
jukbot / student_log_sort.txt
Created August 3, 2016 19:22
sorted student log file
2015 Mr.Lary Pages
2014 Mr.John Smith
2012 Mr.Mark Zuckerburg
2011 Ms.Jane Smith
2011 Mr.Elon Musk
2010 Mr.Steve Jobs
2010 Mr.Steve H.
2008 Mr.Bill Gates
2005 Mr.Joe Doe
@jukbot
jukbot / student_log.txt
Created August 3, 2016 19:22
unsort student log file
2010 Mr.Steve Jobs
2008 Mr.Bill Gates
2015 Mr.Lary Pages
2012 Mr.Mark Zuckerburg
2005 Mr.Joe Doe
2011 Mr.Elon Musk
2014 Mr.John Smith
2010 Mr.Steve H.
2011 Ms.Jane Smith
@jukbot
jukbot / sanfrancisco-font.css
Created August 7, 2016 18:38 — forked from bivainis/sanfrancisco-font.css
San Francisco Web Font
/**
* http://applemusic.tumblr.com/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2");
}
@jukbot
jukbot / kmuttEval.js
Last active April 10, 2017 16:54
KMUTT LECTURER EVALUATE SCRIPT v2 (2015-2017)
How to use this Evaluate script v2
=======================================================================
1. visit http://apollo.kmutt.ac.th/newassess-std/default.aspx
2. select registered courses then enter the evaluation page.
3. right click at the browser > Inspect element > Console
4. select the script below, copy and paste it in command box.
5. enter and done!!
(Note: type "allow parsing" for first use in Firefox browser)
======================================================================
How to install and build nginx from source with ALPN support (used by http2 in Google Chrome)
1. download, config, make and then make install lastest openssl, zlib, pcre from source website (Note that pcre)
2. yum groupinstall 'Development Tools' -y && yum update
3. sudo yum install wget curl unzip gcc-c++ pcre-devel zlib-devel
4. download latest nginx source and cd into it
5. config below
./configure \
@jukbot
jukbot / kmutnbEval.js
Last active April 10, 2017 16:59
KMUTNB LECTURER EVALUATE SCRIPT (2017)
How to use this Evaluate script
=======================================================================
1. visit https://grade.icit.kmutnb.ac.th/en/courselist.aspx?
2. select registered courses then enter the evaluation page.
3. right click at any radio button of the form !! then Inspect > Console
4. choose the script below only 1 script per enter, copy and paste it in command box.
5. enter and done!!
(Note: type "allow parsing" for first use in Firefox browser)
======================================================================
#include <Firebase.h>
#include <FirebaseArduino.h>
#include <FirebaseCloudMessaging.h>
#include <FirebaseError.h>
#include <FirebaseHttpClient.h>
#include <FirebaseObject.h>
#include <ESP8266WiFi.h>
#include <DHT.h>
#include <Wire.h>
#include <time.h>
@jukbot
jukbot / firebase-query.html
Created September 12, 2017 11:17
firebase_query_for_polymerfire_old
<!--
@license
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://github.com/firebase/polymerfire/blob/master/LICENSE
-->
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="firebase-database-behavior.html">
@jukbot
jukbot / firebase-query.html
Created September 24, 2017 13:40
Old Firebase-query no bug but can't take snapshot
<!--
@license
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://github.com/firebase/polymerfire/blob/master/LICENSE
-->
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="firebase-database-behavior.html">
@jukbot
jukbot / .eslintrc.js
Created October 10, 2017 23:31 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {