Skip to content

Instantly share code, notes, and snippets.

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

Jimmy Ko jimmyko

🏠
Working from home
  • INDEPENDENT NEWS & MEDIA (UK) LTD
  • London, Hong Kong
View GitHub Profile
@jimmyko
jimmyko / script.js
Last active November 24, 2019 23:32
HeiHiscoxFrance
// -- in page multi step form.
var multiStepForm = {
_init: function() {
this.backBtn = null;
this.continueBtn = null;
this.previousBtn = null;
this.nextBtn = null;
this.forms = [];
this.current;
},
@jimmyko
jimmyko / demo.html
Last active May 20, 2019 17:04
test-download-pdf
<table>
<thead>
<th>
name
</th>
<th>
id
</th>
<th>
type
### Keybase proof
I hereby claim:
* I am jimmyko on github.
* I am jimmyko (https://keybase.io/jimmyko) on keybase.
* I have a public key whose fingerprint is 9DCE 7192 F505 F72F 19B0 53F7 77A0 A85B 27BC 12F1
To claim this, I am signing this object:
@jimmyko
jimmyko / gist:86818aa66406c1a18837606506a324cf
Last active January 3, 2017 11:46
Console output of drupalvm
➜ drupal-vm git:(68feefa) ✗ vagrant up
Bringing machine 'drupalvm' up with 'virtualbox' provider...
==> drupalvm: Importing base box 'geerlingguy/ubuntu1604'...
==> drupalvm: Matching MAC address for NAT networking...
==> drupalvm: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> drupalvm: Setting the name of the VM: drupalvm.dev
==> drupalvm: Clearing any previously set network interfaces...
==> drupalvm: Preparing network interfaces based on configuration...
drupalvm: Adapter 1: nat
drupalvm: Adapter 2: hostonly
@jimmyko
jimmyko / drupal_install.sh
Created July 20, 2016 13:21 — forked from cam8001/drupal_install.sh
Drupal 8 install script.
#!/bin/bash
function drupal-install() {
sudo rm -rf sites/default;
sudo git checkout -- sites/default;
sudo chmod -R 777 sites/default;
sudo chown -R `whoami` sites/default;
sudo git checkout -- sites/default;
sudo chown -R `whoami` sites/default;
#exit;
@jimmyko
jimmyko / 0_reuse_code.js
Created April 15, 2014 10:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console