var state = {
id: 1,
points: 100,
name: "Goran"
};
var newState = {
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
| def checkout () { | |
| context="continuous-integration/jenkins/" | |
| context += isPRMergeBuild()?"pr-merge/checkout":"branch/checkout" | |
| def scmVars = checkout scm | |
| setBuildStatus ("${context}", 'Checking out completed', 'SUCCESS') | |
| if (isPRMergeBuild()) { | |
| prMergeRef = "refs/pull/${getPRNumber()}/merge" | |
| mergeCommit=sh(returnStdout: true, script: "git show-ref ${prMergeRef} | cut -f 1 -d' '") | |
| echo "Merge commit: ${mergeCommit}" | |
| return [prMergeRef, mergeCommit] |
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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "#5794F2", | |
| "limit": 100, | |
| "name": "k6", |
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
| /** | |
| * util-types could be used to replace some methods of lodash such as: | |
| * _.isObject | |
| * _.isString | |
| * _.isNumber | |
| * _.isFunction | |
| * _.isBoolean | |
| * _.isArray | |
| * _.isRegExp | |
| */ |
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 axios = require('axios') | |
| /* ... */ | |
| const params = new URLSearchParams() | |
| params.append('name', 'Akexorcist') | |
| params.append('age', '28') | |
| params.append('position', 'Android Developer') | |
| params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
| params.append('awesome', true) |
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
| function SaveFileCtrl (SaveFileService) { | |
| var vm = this; | |
| function downloadFile(someArgument) { | |
| SaveFileService.downloadFile({ | |
| param: someArgument | |
| }, function (response) { | |
| var fileName = response.headers['content-disposition'].split("=")[1].replace(/\"/gi,''); | |
| var fileType = response.headers['content-type'] + ';charset=utf-8'; | |
| var blob = new Blob([response.data], { type: fileType }); |
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 | |
| namespace AppBundle\Command; | |
| use AppBundle\Entity\Evento; | |
| use AppBundle\Entity\EventoAdjunto; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; |
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
| # Let apache know we're behind a SSL reverse proxy | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| # Redirect to HTTPS | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IFModule> |
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
| angular.module('app', ['ionic']).directive('positionBarsAndContent', function($timeout) { | |
| return { | |
| restrict: 'AC', | |
| link: function(scope, element) { | |
| var offsetTop = 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
| $obj_merged = (object) array_merge((array) $obj1, (array) $obj2); |
NewerOlder