Skip to content

Instantly share code, notes, and snippets.

View mnich's full-sized avatar
🎯
Focusing

Artur Leśniewski mnich

🎯
Focusing
  • Drzewa Kodów
  • Poland, Milanowek
  • 13:46 (UTC +02:00)
View GitHub Profile
@baio
baio / gist:b4f67a869127d203a5fb
Created January 23, 2015 08:31
calculate element height for collection-repeat
calcDim = (template, scope, containerElement) ->
exp = $interpolate(template)
html = exp(scope)
html = "<div class='item item-text-wrap' style='width: 100%; position: absolute;'>" + html + "</div>"
newElement = angular.element(html)
newElement.css(ionic.CSS.TRANSFORM, 'translate3d(-2000px,-2000px,0)')
containerElement.append(newElement)
offsetHeight = newElement[0].offsetHeight
offsetWidth = newElement[0].children[0].offsetWidth
newElement.remove()
@t-io
t-io / osx_install.sh
Last active April 27, 2025 20:06
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"