Skip to content

Instantly share code, notes, and snippets.

View frekw's full-sized avatar
🐼

Fredrik Wärnsberg frekw

🐼
  • https://www.soundtrackyourbrand.com/
  • Stockholm, Sweden
  • 03:50 (UTC +02:00)
View GitHub Profile
gulp.task('styleguide-sass', function(){
return gulp.src(['static/sass/styleguide.scss'])
.pipe(sass().on('error', errhandler))
.pipe(rename('style.css'))
.pipe(gulp.dest('styleguide/public'));
});
gulp.task('kss', function(){
return gulp.src(['static/sass/*.scss'])
.pipe(kss({
app.e25a10b6.js:1 Uncaught Error: [$injector:modulerr] Failed to instantiate module kit due to:
Error: [$injector:modulerr] Failed to instantiate module angular-bugsnag due to:
ReferenceError: Bugsnag is not defined
at new b.provider.bugsnag (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:6:27009)
at e (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:17991)
at Object.f [as instantiate] (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:18083)
at e (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:16277)
at https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:1091
at f (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:903)
at Object.provider (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:16204)
@frekw
frekw / keybase.md
Created April 28, 2015 14:03
keybase.md

Keybase proof

I hereby claim:

  • I am frekw on github.
  • I am warnsberg (https://keybase.io/warnsberg) on keybase.
  • I have a public key whose fingerprint is 7717 EBCB 657D C10E 2560 3C5D E858 91C7 CB18 6F05

To claim this, I am signing this object:

app.6ed7eb52.js:10 TypeError: Cannot read property 'subscribe' of null
at P.f.addEventListener (s.ytimg.com/yts/jsbin/www-widgetapi-vfliZmGBd/www-widgetapi.js:21)
at _loadPlayer (app.6ed7eb52.js:25)
at app.6ed7eb52.js:25
at processQueue (app.6ed7eb52.js:10)
at app.6ed7eb52.js:10
at Scope.$eval (app.6ed7eb52.js:10)
at Scope.$digest (app.6ed7eb52.js:10)
at app.6ed7eb52.js:10
at completeOutstandingRequest (app.6ed7eb52.js:8)
class Model
attr_accessor :x
def initialize
@observers ||= {}
end
def observe(key, callback = nil, &blk)
@observers[key] ||= []
if block_given?
class Model
def initialize
@observers ||= {}
end
def observe(key, callback = nil, &blk)
@observers[key] ||= []
if block_given?
@observers[key] << blk
Controller:
Todos.popupController = SC.Object.create(
popupShowing: false,
showPopup: function(){ this.set('popupShowing', true) },
hidePopup: function(){ this.set('popupShowing', false) }
// ... //
}) ;
class Button
def initialize
@listeners ||= []
end
def add_listner(listener = nil, &blk)
if block_given?
@listeners << blk
unless listener.nil? # borde kolla att listener är lambda här
@listeners << listener
2597406934722172416615503402127591541488048538651769658472477070395253454351127368626555677283671674475463758722307443211163839947387509103096569738218830449305228763853133492135302679278956701051276578271635608073050532200243233114383986516137827238124777453778337299916214634050054669860390862750996639366409211890125271960172105060300350586894028558103675117658251368377438684936413457338834365158775425371912410500332195991330062204363035213756525421823998690848556374080179251761629391754963458558616300762819916081109836526352995440694284206571046044903805647136346033000520852277707554446794723709030979019014860432846819857961015951001850608264919234587313399150133919932363102301864172536477136266475080133982431231703431452964181790051187957316766834979901682011849907756686456845066287392485603914047605199550066288826345877189410680370091879365001733011710028310473947456256091444932821374855573864080579813028266640270354294412104919995803131876805899186513425175959911520563155337703996941035518275274919959802
<!--[if WorstBrowserEver]>
________
.##@@&&&@@##.
,##@&::%&&%%::&@##.
#@&:%%000000000%%:&@#
#@&:%00' '00%:&@#
#@&:%0' '0%:&@#
#@&:%0 0%:&@#
#@&:%0 This is for good 0%:&@#
#@&:%0 luck trying to 0%:&@#