This file contains 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
git init | |
git add . | |
git commit -m "init" | |
git remote add origin REPO_URL | |
git push -u origin main |
This file contains 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
<div class="logo grid grid-cols-1 gap-0 place-items-center"> | |
<div> | |
<Link :href="route('home')" replace> | |
<v-img src="/images/logo.png"/></Link> | |
</div> | |
</div> |
This file contains 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
<v-list-group value="GROUP_ID"> | |
<template v-slot:activator="{ props }"> | |
<v-list-item v-bind="props" prepend-icon="mdi-home" title="Menu title"></v-list-item> | |
</template> | |
<Link :href="route('bestellijst.index')"> | |
<v-list-item v-bind="props" prepend-icon="mdi-home" title="Sub item 1"></v-list-item> | |
</Link> | |
<Link :href="route('home')"> |
This file contains 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
// create panel in header | |
// set href to id of panel | |
<div data-role="header"> | |
<a href="#menuPanel" class="ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all">No text</a> | |
<h1><g:message code="applicationTitle"/></h1> | |
<div data-role="panel" id="menuPanel" data-display="overlay" data-position="left"> | |
panel content | |
</div> |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>My Page</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> |
This file contains 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
class UrlMappings { | |
static mappings = { | |
// ... | |
"/"(controller:"mycontroller", action:"myindex") // <----------- | |
// ... | |
} | |
} |
This file contains 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
# run with different port | |
grails run-app -Dgrails.server.port.http=9090 |
This file contains 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
# find recursive files and searches on multiple patterns | |
find . -iname "key1" -o -iname "key2" | |
# exclude dist folder and search for multiple patterns | |
find . -path ./dist -prune -o -type f \( -iname "*key1*" -or -iname "*key2*" \) |
This file contains 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
# backup | |
mysqldump -u myname -pmypassword mydatabase > mydumpfile | |
# restore | |
mysql -u mysql -pmypassword mydatabase < mydumpfile |
This file contains 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
# copies source folder to target folder recursively | |
cp -r /from/path /to/path |
NewerOlder