- nvm and node.js
- java 8/9
- sublime text 3
- google chrome
- visual studio code
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
| // License: GPLv2+ | |
| var el = wp.element.createElement, | |
| registerBlockType = wp.blocks.registerBlockType, | |
| ServerSideRender = wp.components.ServerSideRender, | |
| TextControl = wp.components.TextControl, | |
| InspectorControls = wp.editor.InspectorControls; | |
| /* | |
| * Here's where we register the block in JavaScript. |
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
| #!/bin/bash | |
| # Brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| #################################### | |
| # Brew apps | |
| #################################### | |
| brew install cask |
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
| version: "3" | |
| networks: | |
| kong-net: | |
| driver: bridge | |
| services: | |
| ####################################### | |
| # Postgres: The database used by Kong |
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
| import com.google.inject.Inject; | |
| import org.apache.commons.lang3.StringUtils; | |
| import play.api.mvc.Handler; | |
| import play.api.mvc.Handler$; | |
| import play.api.mvc.RequestHeader; | |
| import play.core.j.JavaHandler; | |
| import play.core.j.JavaHandlerComponents; | |
| import play.http.HandlerForRequest; | |
| import play.http.HttpRequestHandler; | |
| import play.libs.streams.Accumulator; |
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
| <?php | |
| // composing presenters without inheritance | |
| // (requires nette/application 2.4.11) | |
| trait RequireLoggedUser | |
| { | |
| public function injectRequireLoggedUser() | |
| { |
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
| FROM openjdk:8 AS TEMP_BUILD_IMAGE | |
| ENV APP_HOME=/usr/app/ | |
| WORKDIR $APP_HOME | |
| COPY build.gradle settings.gradle gradlew $APP_HOME | |
| COPY gradle $APP_HOME/gradle | |
| RUN ./gradlew build || return 0 | |
| COPY . . | |
| RUN ./gradlew build | |
| FROM openjdk:8 |
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
| stages: | |
| - test | |
| - deploy | |
| cache: | |
| paths: | |
| - vendor | |
| # test job | |
| test: |
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
| FROM openjdk:8-jre-alpine | |
| RUN mkdir -p /opt/app | |
| WORKDIR /opt/app | |
| COPY ./run_jar.sh ./app-assembly.jar ./ | |
| ENTRYPOINT ["./run_jar.sh"] |