Skip to content

Instantly share code, notes, and snippets.

@dstaley
dstaley / PREVIEW.md
Last active August 29, 2015 14:25
Slack desktop theme based on Atom's default theme

Preview of the Atom for Slack theme

(function() {
var out = {};
var n;
var walk = document.createTreeWalker(
document,
NodeFilter.SHOW_COMMENT,
{ acceptNode: function(n) { return n.nodeValue.substring(1, 7) === './src/'; } },
false
);
while ((n = walk.nextNode()) !== null) {
@dstaley
dstaley / SassMeister-input.scss
Created October 27, 2015 15:49
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@dstaley
dstaley / SassMeister-input.scss
Created December 21, 2015 19:01
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@mixin generate-grid($col: 12) {
@for $i from 1 to $col + 1 {
.col-#{$i} { flex: 0 0 percentage($i/$col); }
}
}
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=3356eb28a4f746ca1528)
* Config saved to config.json and https://gist.github.com/3356eb28a4f746ca1528
*/
[
{
"id": 1037596207,
"feed_id": 1915,
"title": "Apple Music reportedly approaches half as many paid subscribers as Spotify",
"author": "Dante D'Orazio",
"content": "...",
"summary": "...",
"url": "http://www.theverge.com/2016/1/10/10745630/apple-music-total-paid-subscribers-vs-spotify",
"published": "2016-01-10T18:35:37.000000Z",
let ThemeComponent = React.createClass({
getInitialState() {
return {
'theme': 'Day',
};
},
getStyle(element) {
return [baseStyles[element], themeStyles[this.state.theme][element]];
},
render() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
images: [
{'id': 0, 'name':'first', 'src': 'https://i.imgur.com/uQbAV8a.gif'},
{'id': 1, 'name':'second', 'src': 'http://replygif.net/i/715.gif'},
{'id': 2, 'name':'third', 'src': 'http://25.media.tumblr.com/tumblr_lovjrlNfbB1qaxm3co6_500.gif'}
]
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
options: [
{
"display_name": "Color",
"option_id": 1128,
"sort_order": 0,
"values": [
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});