Skip to content

Instantly share code, notes, and snippets.

View Dremora's full-sized avatar

Kirill Korolyov Dremora

View GitHub Profile
@Dremora
Dremora / time.elm
Last active October 8, 2016 19:02
Types and functions for working with time
type Date
type Time
type Timestamp
type Timezone = System | UTC | TimezoneData ...
type IntervalUnit = Millisecond | Second | Minute | Hour | Day | Month | Year
type Interval
type Locale
type Format
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
change() {
}
}
});
@Dremora
Dremora / controllers.index.js
Last active April 22, 2016 18:28
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
redirectToFoo() {
this.transitionToRoute('foo');
}
}
});

Text

  • font-family
  • font-size
  • font-style
  • font-variant
  • font-weight
  • font
  • letter-spacing
  • line-height
  • white-space
import Ember from 'ember';
export default Ember.Component.extend({
repositionStickyEditor: function () {
let top = -$(window).scrollTop();
$('.sticky').css('transform', `translateY(${top <= 84 ? 8- top : 0}px) translateZ(0)`)
// this.repositionStickyEditor();
// });
}.on('didInsertElement'),

Keybase proof

I hereby claim:

  • I am dremora on github.
  • I am dremora (https://keybase.io/dremora) on keybase.
  • I have a public key whose fingerprint is 9099 1B2A F23B 6BBD 3B4E FE65 7C95 050F F386 9535

To claim this, I am signing this object:

var input
// Synchronous code
var a_ = a(input)
var b_ = b(a_)
var output = c(b_)
// Synchronous code, short
var output = c(b(a(_)))
@Dremora
Dremora / gist:b052655dd1c5c81d7628
Created January 9, 2015 11:32
groupBy Backbone collection
var Backbone = require('backbone');
var CollectionModel = Backbone.Model.extend({
initialize: function () {
this.collection = new Backbone.Collection();
},
add: function () {
this.collection.add.apply(this.collection, arguments);
},
@Dremora
Dremora / Scrolling-without-scrollbar.markdown
Created January 8, 2015 12:31
Scrolling without scrollbar
define(function (require) {
require('hbs!./template');
});