Skip to content

Instantly share code, notes, and snippets.

View sivakumar-kailasam's full-sized avatar
:shipit:

Sivakumar Kailasam sivakumar-kailasam

:shipit:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sivakumar-kailasam on github.
  • I am sivakumar_k (https://keybase.io/sivakumar_k) on keybase.
  • I have a public key ASBoSm3R1KD-YFO4dUk8nQZqQkXdBP4B3_pz9Kll__WqxAo

To claim this, I am signing this object:

@sivakumar-kailasam
sivakumar-kailasam / aidan_notes.md
Created April 18, 2018 21:00
Notes for ember cms

My pipeline 1) parses content dirs you configure in e-cli-build: https://github.com/anulman/cook-for-mom/blob/feat/markdown-yml/ember-cli-build.js#L17-L20 2) Passes the resulting components through e-cli-htmlbars (by virtue of including them in the treeForTemplate); I'm personally preprocessing these between hyde & e-cli-htmlbars to support handlebars / ember env in my templates: https://github.com/anulman/cook-for-mom/blob/feat/markdown-yml/lib/ember-cli-markdownbars/index.js#L16-L40 3) splits remote templates (currently hardcoded, can be made configurable) into the root dir, ie to be distributed in the public tree 4) The json & content can be fetched from a predictable path:

import Ember from 'ember';
export default Ember.Component.extend({
name: 'Ember',
//sectionTitle:`I'm an awesome title`
});
@sivakumar-kailasam
sivakumar-kailasam / hub.md
Created December 10, 2017 03:14
Using hub to work with Github projects

Installation

Follow the instructions at https://github.com/github/hub#installation to install hub

Contributing to a project

Let's say we'd like to help out https://github.com/ember-learn/super-rentals in this example.

  • In your machine run hub clone ember-learn/super-rentals & then cd cd super-rentals
  • Then run hub fork, this will automagically fork the current repo under your github username & you'll see the repo getting copied over in the output
  • Run git checkout -b my-fixes where my-fixes is the name of the branch where you'll be coding your changes.
  • Once you've made all the commits run git push YOUR_GITHUB_USER_NAME my-fixes, this will push the code from your branch to your copy of the repo under your github user name.
  • Now you can run git pull-request from the command line to create a pull request which will give you the link to the created PR.
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
console.clear();
this.get('store').createRecord('profile', {id: 0, name: 'Captain America'});
},
import $ from 'jquery';
// import Promise from 'rsvp';
import DS from 'ember-data';
export default DS.Adapter.extend({
findRecord(store, type, id, snapshot) {
return {'imgURL': 'New Img comes here'};
},

| Mon | Tue | Wed | Thu | Fri | Sat | Sun | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | 8 | 9 | 10 | 11 | 12 | 13 | 14 | | 15 | 16 | 17 | 18 | 19 | 20 | 21 | | 22 | 23 | 24 | 25 | 26 | 27 | 28 | | 29 | 30 | 31 | | | | |

function onDateSelect(date) { console.log(date.no, date.day);

Employee POC

Starting page

  • List of Employees
  • Can edit, view & delete employees from the table
  • Button to create a new employee

Initiate page

  • Fields in form
import Ember from 'ember';
export default Ember.Component.extend({
});