This file contains hidden or 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
ID | Titel | Custom ranking | Description | |
---|---|---|---|---|
10001 | Henk | 1 | Telt niet mee | |
10002 | Henk | 2 | Telt niet mee | |
10003 | Henk | 3 | Telt niet mee | |
10004 | Henk | 4 | Telt niet mee | |
10005 | Henk | 5 | Telt niet mee | |
10006 | Henk | 6 | Telt niet mee | |
10007 | Henk | 7 | Telt niet mee | |
10008 | Henk | 8 | Telt niet mee | |
10009 | Henk | 9 | Telt niet mee |
This file contains hidden or 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
<script> | |
// Check that service workers are supported | |
if ('serviceWorker' in navigator) { | |
// Use the window load event to keep the page load performant | |
window.addEventListener('load', () => { | |
navigator.serviceWorker.register('/sw.js'); | |
}); | |
} | |
</script> |
This file contains hidden or 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
const mix = require('laravel-mix'); | |
// Import the workbox plugin | |
require('laravel-mix-workbox'); | |
mix | |
// ... js, scss, and other rules | |
// webpackConfig is important here | |
.webpackConfig({ |
This file contains hidden or 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
<!-- Load Facebook SDK for JavaScript --> | |
<div id="fb-root"></div> | |
<script defer> | |
function loadMessenger() { | |
window.fbAsyncInit = function() { | |
FB.init({ | |
xfbml : true, | |
version : 'v7.0' | |
}); | |
}; |
This file contains hidden or 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
- name: install_composer_deps | |
script: composer install --no-scripts --no-dev | |
- name: cache_laravel_config | |
script: "php artisan config:cache" | |
- name: clear_laravel_views | |
script: "php artisan view:clear" | |
- name: run_laravel_migrations |
This file contains hidden or 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
- hosts: roelofjanelsinga.com | |
vars_files: | |
- secrets.yml | |
vars: | |
github_repo_url: https://{{github_user}}:{{github_token}}@github.com/roelofjan-elsinga/portfolio.git | |
working_directory: /path/to/app | |
roles: | |
- deploy_laravel_app |
This file contains hidden or 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
- name: "Pull changes from GitHub" | |
git: | |
repo: "{{github_repo_url}}", # This is how we can make this step reusable across projects | |
dest: "{{working_directory}}" | |
version: master # Branch to pull | |
accept_hostkey: yes | |
notify: | |
- install_composer_deps | |
- cache_laravel_config | |
- clear_laravel_views |
This file contains hidden or 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
- hosts: roelofjanelsinga.com # You can also specify an IP address | |
vars_files: | |
- secrets.yml # Contains the github_user and github_token variable | |
vars: # Define new variables | |
github_repo_url: https://{{github_user}}:{{github_token}}@github.com/roelofjan-elsinga/portfolio.git | |
working_directory: /path/to/app | |
tasks: | |
- name: "Pull changes from GitHub" | |
git: | |
repo: "{{github_repo_url}}", # This is how we can make this step reusable across projects |
This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
) | |
func main() { |
This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"strconv" | |
) | |
func main() { | |
var message = flag.String( |
NewerOlder