Skip to content

Instantly share code, notes, and snippets.

View edsilv's full-sized avatar

Edward Silverton edsilv

View GitHub Profile
@edsilv
edsilv / gist:6fc9b370d70df642cf01
Last active August 29, 2015 14:02
Equalise Element Heights
$.fn.equaliseHeight = function () {
var maxHeight = -1;
// reset all heights to auto first so they can be re-measured.
this.each(function () {
$(this).height('auto');
});
this.each(function () {
@edsilv
edsilv / gist:b34fec788204125c0d01
Last active August 29, 2015 14:03
Add Submodule to Wellcome Player
// from root directory
git submodule add https://github.com/wellcomelibrary/wellcomeplayer-treeviewleftpanel-module.git src/modules/wellcomeplayer-treeviewleftpanel-module
@edsilv
edsilv / designer.html
Last active August 29, 2015 14:03
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-counter" attributes="counter">
<template>
<style>
</style>
<div id="label">
<content></content>
</div>
@edsilv
edsilv / restart.bat
Created August 4, 2014 18:14
restart.bat
shutdown -r -t 0
@edsilv
edsilv / run.bat
Created August 4, 2014 18:16
Run Atom Shell App
.\build\atom-shell\atom.exe %cd%\src\
@edsilv
edsilv / build.bat
Created August 4, 2014 18:18
Build and Run a node-webkit App
:: add C:\Program Files\7-Zip\;C:\node-webkit-v0.10.1-win-ia32\ to PATH
7za a -tzip %cd%\build\app.nw %cd%\src\*
nw %cd%\build\app.nw
@edsilv
edsilv / gist:28e59743f08512a78dd7
Created August 4, 2014 18:23
Update Atom Editor to latest version
cup Atom
@edsilv
edsilv / gist:afa8b7d6764944116985
Created August 12, 2014 18:15
keep a submodule's contents after merging an upstream repo with a submodule of the same name
git reset HEAD mymodule
<Application
xmlns="http://schemas.wsick.com/fayde"
xmlns:x="http://schemas.wsick.com/fayde/x"
ThemeName="Metro">
<Grid>
<Canvas Width="800" Height="600" Background="Gray">
<Rectangle
Canvas.Left="100"
Canvas.Top="100"
Fill="#222222"
@edsilv
edsilv / gist:e04bb93584f2b40434ab
Created September 12, 2014 17:09
Create symlink to debug a Fayde lib
mklink /D src ..\..\..\src