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 DATABASE IF NOT EXISTS `test_cte`; | |
USE `test_cte` ; | |
# | |
CREATE TABLE IF NOT EXISTS `test_cte`.`trees` ( | |
`id` INT NOT NULL , | |
`parent_id` INT NULL , | |
PRIMARY KEY (`id`) ) | |
ENGINE = InnoDB; | |
# |
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
var uri = $0.toDataURL(); | |
function download(dataurl, filename) { | |
var a = document.createElement('a'); | |
a.href = dataurl; | |
a.setAttribute('download', filename); | |
var e = document.createEvent('MouseEvents'); | |
e.initEvent('click', false, true); | |
a.dispatchEvent(e); |
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
// Helpers | |
const recursiveCompiling = (path, outputPath, funcName, appendedPath = '') => { | |
const dirPath = `${path}${appendedPath}`; | |
const filenames = fs.readdirSync(dirPath); | |
filenames | |
.filter(filename => !(filename.charAt(0) === '_')) | |
.filter(filename => !(filename.charAt(0) === '.')) | |
.forEach(filename => { | |
const filePath = `${path}${appendedPath}/${filename}`; |
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
# Put Makefile in Laravel Project | |
init: | |
docker volume create --driver=local composer_cache_data && \ | |
docker volume create --driver=local npm_cache_data | |
composer: | |
docker run --rm -ti \ | |
-v composer_cache_data:/tmp \ | |
-v $(PWD):/app -w /app \ |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="13"> | |
<profile kind="CodeFormatterProfile" name="GoogleStyle" version="13"> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
OlderNewer