Skip to content

Instantly share code, notes, and snippets.

View seanowenhayes's full-sized avatar
🌴
On vacation

Sean Hayes seanowenhayes

🌴
On vacation
View GitHub Profile
@seanowenhayes
seanowenhayes / findDeletedFileInGit.sh
Created August 5, 2021 07:21
Find files lost/ deleted in git
> git rev-list -n 1 HEAD -- e2e/README.md
> 8e3b56b0e69db098ee7afccf2de4f372e28cd98a
> git checkout 8e3b56b0e69db098ee7afccf2de4f372e28cd98a^ -- e2e/README.md
@seanowenhayes
seanowenhayes / TapCarousel
Created August 29, 2013 15:11
Extend the default Sencha Touch Carousel component so that it triggers a tap event passing the carousel as an argument.
/**
* An extension to the standard sencha carousel but fires the tap event the carousel is passed as the argument in the event.
*/
Ext.define('NameSpace.view.helper.TapCarousel', {
extend: 'Ext.carousel.Carousel',
xtype: 'tapcarousel',
config: {
@seanowenhayes
seanowenhayes / child.js
Created June 1, 2013 19:21
How to use child processes in nodejs
#!/usr/bin/node
var colors = require('colors');
process.on('message', function(m) {
console.log('Hello Mummy and Daddy, I love you!'.cyan);
});