Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am gugahoi on github.
  • I am gugahoi (https://keybase.io/gugahoi) on keybase.
  • I have a public key ASDb8LJS1m-EbbSrv2CaIOpY5irm-j7XkpxdqJaYvYu8mAo

To claim this, I am signing this object:

@gugahoi
gugahoi / echoheader.yml
Last active June 30, 2017 03:19
Kubernetes Ingress Controller Configuration
apiVersion: v1
kind: Service
metadata:
name: echoheaders
labels:
app: echoheaders
spec:
type: NodePort
ports:
- port: 80
@gugahoi
gugahoi / main.js
Created April 20, 2015 03:36
Emulate double click to single click jQuery
$(document).ready(function() {
$(document).on('dblclick', '.btn', function(event) {
event.preventDefault();
$(this).click();
});
});
@gugahoi
gugahoi / app.js
Last active December 11, 2015 19:18
keyUp filter function
App.Filter = Ember.TextField.extend({
keyUp: function() {
var array = App.Movies.FIXTURES;
for (var i = array.length - 1; i >= 0; i--) {
var name = array[i].name,
id = array[i].id,
movie = App.Movies.find(id);
if(name.toLowerCase().indexOf(this.get('value')) !== -1){
movie.set('isHidden', false);
} else {