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
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 |
/* | |
This is my composer.json file for http://reload.github.io/phing-drupal-template/ | |
after the save to the drupal root directory | |
composer install | |
using phing: | |
./vendor/phing/phing/bin/phing | |
see the url above for more commands | |
*/ | |
{ | |
"require-dev": { |