Skip to content

Instantly share code, notes, and snippets.

View paulakreuger's full-sized avatar

Paula Kreuger paulakreuger

  • @allihoopa
  • Stockholm
View GitHub Profile
@chreke
chreke / hemlagad-huel.md
Last active August 23, 2023 09:27
Recept på "hemlagad" "Huel"

Hemlagad Huel

  • 200 g kvarg
  • 1 banan
  • 1 dl havregryn
  • 3 dl mjölk (3%)
  • 1 msk olivolja
  • 0,5 tsk salt

Instruktioner:

@kontur
kontur / gist:777f0409a04e041440c0
Last active August 29, 2015 14:03
Javascript window width detection that matches mediaquery pixel width
if ((window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth)> someMediaQueryBreakpointPointToMatch) {
...
}
$.getScript('//connect.facebook.net/en_UK/all.js', function(){
FB.init({
appId: 'APPID',
channelUrl: '//siteurl.com/channel.html',
});
$("#some-btn-id").click(function () {
FB.ui(
{
@boneskull
boneskull / gist:3138069
Created July 18, 2012 18:56
angular directive to fadeIn/hide
/**
* Fades an element in when the model changes. Restricted to attributes.
*
* Usage:
*
* <div di-fade-in="foo"/>
*/
di.directive('diFadeIn', function () {
return {