I love Ember because it means human in my mothertongue
ember new project-name
cd project-name
bower install ember --save-dev //choose the latest one. Now 2.0.1
| var swisseph = require ('swisseph'); | |
| swisseph.swe_set_ephe_path (__dirname + '/ephem'); | |
| swisseph.swe_utc_to_jd(1971, 9, 25, 5, 30, 0, swisseph.SE_GREG_CAL, function(julianDay) { | |
| ret = swisseph.swe_houses(julianDay.julianDayUT, 47.30, 19.05, 'P', function(ret) { | |
| ret.house.forEach(function (house, index) { | |
| console.log(strtime(house)); | |
| }); | |
| }); |
| git config --global alias.co checkout | |
| git config --global alias.br branch | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.unstage 'reset HEAD --' | |
| git config --global alias.last 'log -1 HEAD' | |
| git config --global alias.visual "!gitk" |
| <?php | |
| $file = file("sql.sql"); | |
| $file = join("", $file); | |
| $file = html_entity_decode($file); | |
| $search = | |
| array('é', 'Å‘', 'ü', 'ű', 'ó', 'ö', 'á', 'Ã', '©', 'Ú', 'ú', 'É'); | |
| $replace = | |
| array('é' , 'ő' , 'ü' , 'ű' , 'ó' , 'ö' , 'á' , 'í', '©' , 'Ú' , 'ú' , 'É'); | |
| $file = str_replace($search, $replace, $file); | |
| echo $file; |
| core: 7.x | |
| api: 2 | |
| projects: | |
| drupal: | |
| version: '7.50' | |
| admin_menu: | |
| subdir: contrib | |
| version: 3.0-rc5 | |
| ctools: | |
| subdir: contrib |
| ember new projectname | |
| cd projectname | |
| ember install ember-cli-sass ember-sass-bootstrap ember-suave emberfire torii ember-cp-validations | |
| setting firebase: https://www.firebase.com/docs/web/libraries/ember/guide.html | |
| The app/routes/application.js beforeModel is very important!!! | |
| ember generate route application | |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| show: null, | |
| menus: Ember.computed('model', function() { | |
| return this.model; | |
| }), | |
| actions: { | |
| showMatch(menu) { | |
| //alert('Start'); |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| model: [ | |
| {id: 1, | |
| name: 'First', | |
| extra: 'First extra' | |
| }, | |
| { | |
| id: 2, |
| #docker ip | |
| boot2docker ip drupalhu_web_1 | |
| #file berakás a dockerba (pld az sql): egyszerűen másold be a drupal.hu/dockerfiles/druphungary könyvtárba | |
| #Így el lehet érni /var/www/site-php könyvtárban a docker image-ben | |
| #loginolás a dockerbe | |
| docker exec -i -t drupalhu_web_1 bash |