Skip to content

Instantly share code, notes, and snippets.

View rjschie's full-sized avatar

Ryan Schie rjschie

  • Portugal
  • 06:11 (UTC +01:00)
  • LinkedIn in/rschie
View GitHub Profile
import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
runIt(model, e) { =;
//console.log('inputting', model.isDirty);
import Component from '@glimmer/component';
* Open your console when viewing this and
* refresh your page to see the posts
* being console logged.
export default class extends Component {
constructor() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
rjschie / controllers.application.js
Last active October 25, 2018 23:20
Route Computed Props
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
rjschie / D3-Line.html
Last active April 7, 2016 05:20
D3 Line Chart that scales
<!DOCTYPE html>
<meta name="description" content="D3 Line chart that scales">
<script src=""></script>
svg {
border: 1px solid red;
import Ember from 'ember';
export default Ember.Component.extend({
isVisible: false
rjschie / Input Focus Animation.html
Last active September 28, 2015 01:14
Saw this on Bungie's website, and wanted to give it a go using only CSS.
<!DOCTYPE html>
<title>Input Focus Animation</title>
html,body {
padding: 0;
margin: 0;
height: 100%;
rjschie / racecar.js
Created September 24, 2015 23:48
Heard a problem set the other day to make a function detecting if a string is a palindrome. Wanted to give it a shot.
'use strict';
function reverseString(input) {
var result = "";
for( var i = (input.length-1); i >= 0; i-- ) {
result = result + input[i];
return result;
<div ng:controller="PersistentTodosController">
<ul class="todos">
<li ng:repeat="item in todos">
<input type="checkbox" ng:model="item.completed" />
ng:class="{ completed: item.completed }"
>{{ item.title }}</label>