By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
<?php | |
public function createAction() | |
{ | |
$objectManager = $this->getServiceLocator()->get('Doctrine\ORM\EntityManager'); | |
$form = new \Admin\Form\RegisterForm($objectManager); | |
$register = new \Admin\Entity\Register(); | |
$form->bind($register); | |
$viewmodel = new ViewModel(); | |
$viewmodel->setTerminal($this->getRequest()->isXmlHttpRequest()); |
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
/* DISCLAIMER: | |
It doesn't complete all select fields, just the ones where the options are: | |
"Malo" .. "Muy bueno y satisfatorio" | |
The final value for all the options is set to: "Muy bueno y satisfatorio" | |
Target: http://www.ing.unp.edu.ar/encuestas/ | |
Authors: Luque Leandro, Pazos Bruno. | |
*/ | |
var selects = document.querySelectorAll('select[name^=preg]'); | |
for (var i = 0; i < selects.length; i++){ |
<!-- | |
These are code style settings, based off the Style Guide for Angular 2: | |
https://angular.io/docs/ts/latest/guide/style-guide.html | |
WebStorm does not currently reformat code based off of tslint.json settings. | |
This is an attempt to set TypeScript settings for Code Style to follow the Style Guide. | |
I will update this as I find differences. | |
To Import: Settings > Editor > Code Style > Import | |
--> | |
<code_scheme name="Angular 2"> | |
<TypeScriptCodeStyleSettings> |
Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.
A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.
Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.
https://github.com/shyiko/jabba instead ?
vi /etc/environment | |
add these lines... | |
LANG=en_US.utf-8 | |
LC_ALL=en_US.utf-8 |
# Setup JHipster to use the latest LTS version of NodeJS | |
nvm use --lts && node -v > .nvmrc | |
mvn versions:set-property -Dproperty=node.version -DnewVersion=$(cat .nvmrc) | |
# Setup JHipster to use your local version of yarn for prod builds | |
mvn versions:set-property -Dproperty=yarn.version -DnewVersion="v$(yarn -v)" | |
# Or Setup JHipster to use your local version of npm for prod builds | |
mvn versions:set-property -Dproperty=npm.version -DnewVersion="v$(npm -v)" |
""" | |
This is a small python script to clear up old gitlab build artifacts. | |
There are 3 variables you should modify: | |
* base_url: path to your gitlab | |
* access_token: your personal access token to make gitlab api calls | |
* delete_everything_older_than: configure the timedelta as you wish | |
!!IMPORTANT!! | |
By default this script does only make dry-runs and does not actually delete any files! |