Created
May 19, 2017 23:24
-
-
Save foxnewsnetwork/8747f7c7b2984c99098d047d0e0be90d to your computer and use it in GitHub Desktop.
New Twiddle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
function pee(s) { | |
return 'https://placeholdit.imgix.net/~text?txtsize=33&txt=' + s + '&w=200&h=200'; | |
} | |
var colors = [ | |
'red', 'green', 'blue', 'yellow', 'black', 'white', 'cyan', 'asian' | |
]; | |
export default Ember.Route.extend({ | |
model: function() { | |
let ccs = []; | |
for (var i = 0; i < 666; i++) { | |
ccs.push(pee(colors[i % colors.length])) | |
} | |
return ccs; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
.xxx { | |
height: 1080px; | |
width: 1920px; | |
overflow: scroll; | |
} | |
li { | |
display: inline-block; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "1.11.3", | |
"ember-template-compiler": "1.11.3" | |
}, | |
"addons": { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment