I hereby claim:
- I am chewbakartik on github.
- I am davidkartik (https://keybase.io/davidkartik) on keybase.
- I have a public key ASAmHe5RMal6qpBbuP5fmx86Eau2C2wKQWaNyxUI4KXJgQo
To claim this, I am signing this object:
| #!/bin/sh | |
| ### MacOS X note: replace {user.home} with the actual path to your home folder | |
| export JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=/Users/david.kartik/.arkcase/acm/private/arkcase.ks -Djavax.net.ssl.trustStore=/U | |
| sers/david.kartik/.arkcase/acm/private/arkcase.ts -Dspring.profiles.active=ldap -Dacm.configurationserver.propertyfile=/Users/david.kartik/.arkcase/acm/conf.yml -Xms1024M -Xmx1024M" | |
| #export NODE_ENV=development | |
| #export CATALINA_OPTS=/usr/local/opt/tomcat-native/lib |
| class CashRegister | |
| US_COINS = {"quarter" => 25, "dime" => 10, "nickel" => 5, "penny" => 1 } | |
| EU_COINS = {"50_cent" => 50, "20_cent" => 20, "10_cent" => 10, "5_cent" => 5, "2_cent" => 2, "1_cent" => 1 } | |
| def self.get_change(cash, currency) | |
| cash_left = cash | |
| coin_numbers = Hash.new | |
| coins = self.get_coins(currency) | |
| # determine the quantity of each coin starting from the largest value |
| require 'benchmark' | |
| require_relative 'fibonacci_operations' | |
| # Determining which formula has better preformance when calculating the answer 1 million times | |
| Benchmark.bm(20) do |bm| | |
| [4000000, 40000000, 400000000, 4000000000, 40000000000].each {|x| | |
| puts "For #{x}" | |
| bm.report("Formula:") { | |
| 1000000.times do | |
| FibonacciOperations.sum_even(x) |
I hereby claim:
To claim this, I am signing this object:
| # This is the script that is edited in the UI for Gitlab-CI | |
| # | |
| # $CI_BUILD_REF_NAME is provided by Gitlab-CI, it contains the branch the runner is working in. | |
| branch=$CI_BUILD_REF_NAME | |
| if [ $branch = "branch1" ]; then | |
| bash deploy/branch1.sh | |
| fi |
| App.Router.map(function() { | |
| return this.resource("modelsA", function() { | |
| this.resource("modelA", { path: ":modelA_id" }, function() { | |
| return this.resource("modelsB", function() { | |
| this.resource("modelB", { | |
| path: ":modelB_id" | |
| }); | |
| return this.route("new") | |
| }); | |
| }); |
| { | |
| "name": "typo3/neos-base-distribution", | |
| "description" : "TYPO3 Neos Base Distribution", | |
| "license": "GPL-3.0+", | |
| "config": { | |
| "vendor-dir": "Packages/Libraries", | |
| "bin-dir": "bin" | |
| }, | |
| "require": { | |
| "typo3/neos": "dev-master", |
| /** | |
| * Injects the security context | |
| * | |
| * @param \TYPO3\Flow\Security\Context $securityContext The security context | |
| * @return void | |
| */ | |
| public function injectSecurityContext(\TYPO3\Flow\Security\Context $securityContext) { | |
| $this->securityContext = $securityContext; | |
| } |
| Settings.yaml: | |
| TYPO3: | |
| Flow: | |
| security: | |
| enable: TRUE | |
| authentication: | |
| authenticationStrategy: oneToken | |
| providers: | |
| DefaultProvider: | |
| provider: PersistedUsernamePasswordProvider |