- Create a gist if you haven't already.
- Clone your gist:
# make sure to replace `<hash>` with your gist's hash git clone https://gist.github.com/<hash>.git # with https git clone git@gist.github.com:<hash>.git # or with ssh
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.4-fpm | |
definitions: | |
services: | |
mysql: |
<?php | |
// For example in AppServiceProvider | |
Validator::extend('extensions', function ($attribute, $value, $parameters) { | |
return in_array($value->getClientOriginalExtension(), $parameters); | |
}); | |
Validator::replacer('extensions', function($message, $attribute, $rule, $parameters) { | |
return str_replace([':attribute', ':values'], [$attribute, implode(',', $parameters)], $message); | |
}); |
class="[a-zA-Z0-9:;\.\s\(\)\-\,]*" |
// Using bootstrap the SASS way. Import your variables. | |
@import "bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/variables"; | |
/* http://getbootstrap.com/css/#responsive-utilities */ | |
/* Extra small devices (phones, less than 768px) */ | |
/* No media query since this is the default in Bootstrap */ | |
// Mobile first | |
body{ | |
border: solid 4px red; |
public abstract class BaseActivity extends AppCompatActivity { | |
public void moveBack() { | |
super.onBackPressed(); | |
} | |
public abstract void onBackWhenNoFragment(); | |
@Override | |
public void onBackPressed() { |
/** | |
* The activity containing your EditTexts. | |
*/ | |
public class ProfileActivity extends AppCompatActivity { | |
/** | |
* Input field "your name". | |
*/ | |
@Bind(R.id.edittext_name) | |
EditText nameEditText; |
.PHONY: run | |
# certs and output | |
OUTPUT_FILE=apkname.apk | |
ALIAS=youralias | |
KEYPASS=yourkeypass | |
KEYSTORE=certs/yourcert.keystore | |
UNSIGNED=platforms/android/build/outputs/apk/android-release-unsigned.apk | |
# or, if you're using Crosswalk: |
These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.
These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.
Install Supervisor with sudo apt-get install supervisor
in Unix or brew install supervisor
in Mac OSX. Ensure it's started with sudo service supervisor restart
in Unix or brew services start supervisor
in Mac OSX.
In Unix in /etc/supervisord/conf.d/
create a .conf
file. In this example, laravel_queue.conf
(contents below). Give it execute permissions: chmod +x laravel_queue.conf
.
In Mac OSX first run supervisord -c /usr/local/etc/supervisord.ini
and in /usr/local/etc/supervisor.d/
create a .conf
file. In this example, laravel_queue.conf
(contents below). Give it execute permissions: chmod +x laravel_queue.conf
.
This file points at /usr/local/bin/run_queue.sh
, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh
.
Now update Supervisor with: sudo supervisorctl reread
in Unix and with: brew services restart supervisor
in MAc OSX . And start using those changes with: sudo supervisorctl update
.