Skip to content

Instantly share code, notes, and snippets.

Samuel Liew samliew

Block or report user

Report or block samliew

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
@samliew
samliew / countries.js
Last active Sep 9, 2016
Country list as JavaScript array (alphabetical)
View countries.js
// Taken from http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm
var countries = ["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua And Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State Of", "Bonaire, Sint Eustatius And Saba", "Bosnia And Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic Of The", "Cook Islands", "Costa Rica", "Côte D'ivoire", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "D
@samliew
samliew / ike-style.css
Last active Nov 7, 2016
New IKE styling by samliew
View ike-style.css
/*
The new and improved IKE!
Made for and tested in Google Chrome only.
Version: 1.1
Instructions:
1. Install this Google Chrome plugin "Stylish": https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
2. Go to the IKE intranet: http://ike
3. Click on the extension icon on the top right of Chrome, click "Write style for: this URL"
4. Copy and paste the contents of this file: https://gist.github.com/samliew/f36d02131ec25e4dddbabd5dadc9bb43 (click "Raw" button so you can select all)
View starfield.js
/**
* Source: http://www.kodhus.com/kodity/land/kod/bXCBjh
*
* The stars in our starfield!
* Stars coordinate system is relative to the CENTER of the canvas
* @param {number} x
* @param {number} y
*
* Usage:
* var starField = new StarField('fullScreen').render(333, 3);
View keybase
### Keybase proof
I hereby claim:
* I am samliew on github.
* I am samliew (https://keybase.io/samliew) on keybase.
* I have a public key whose fingerprint is 7348 E358 6995 C693 86F3 9EA8 6A77 CCE9 606D 629D
To claim this, I am signing this object:
View scrolloverflow.js
/*!
* Customized version of iScroll.js 0.0.7
* It fixes bugs affecting its integration with fullpage.js
*/
/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
(function (window, document, Math) {
var rAF = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
View jquery.fullPage.js
/*!
* fullPage 2.9.7
* https://github.com/alvarotrigo/fullPage.js
* @license MIT licensed
*
* Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo
*/
(function(global, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
View AutoReviewComments.txt
###[Q,A] Rude/abusive
This is a friendly reminder to **[be nice](//$SITEURL$/help/be-nice)**. If any of you are not able to engage in civil discussion, please refrain from doing so and just move on.
###[Q,A] Flag for mod
When you have edited your post to fix the issue(s) mentioned above, you can flag for a moderator to review & undelete.
###[Q] Plagiarism
Incorrectly deleted for plagiarism? Please [raise a discussion on Meta $SITENAME$](https://meta.stackoverflow.com/questions/ask?tags=discussion+specific-question+plagiarism+moderators+deleted-answer&title=My+question+was+incorrectly+deleted+for+plagiarism)
###[A] Plagiarism
View stackuserstyles.css
@-moz-document domain("stackexchange.com"), domain("stackoverflow.com"), domain("serverfault.com"), domain("superuser.com"), domain("askubuntu.com"), domain("stackapps.com"), domain("mathoverflow.net") {
/* Mod interface styles */
#mod-history,
#chat-feature,
.module .more-info,
.module.t-flag,
.module.t-flag ~ .module,
#chat-feature ~ .module {
display: none;
}
You can’t perform that action at this time.