Skip to content

Instantly share code, notes, and snippets.

View OpakAlex's full-sized avatar
🏠
Working from home

opak OpakAlex

🏠
Working from home
View GitHub Profile
int TravelDaysNumber = (int)params.duration;
int PolicyHolderAge = (int)params.age_on_current_date;
if(TravelDaysNumber < 57 && PolicyHolderAge < 75) {
module Metric
module Formula
class Nps < Base
end
end
end
module Metric
module Formula
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// @remove-on-eject-end
import React from 'react';
import styled from 'styled-components';
import last from 'lodash/last';
import moment from 'moment';
import Input from '../Input';
import Button from '../Button';
import ModalToggler from '../ModalToggler';
import Former from '../Former';
module ArrayUtils
module_function
def reverse(array)
size = array.size
array.each_with_index.map do |item, index|
array[size - 1 - index] # just take elements from end to start (size - 1) the last element, then - index, for last it's 0
end
end
end

Keybase proof

I hereby claim:

  • I am opakalex on github.
  • I am opak (https://keybase.io/opak) on keybase.
  • I have a public key ASCa7Tn1e3-T1n6BLVNuOLfizocOceOwG5JgRkHxPF2Evgo

To claim this, I am signing this object:

set nocompatible
set nobackup
set nowritebackup
set noswapfile
set showcmd
set number
set incsearch
set laststatus=2
set splitbelow
set splitright
#!/bin/bash
unknown_os ()
{
echo "Unfortunately, your operating system distribution and version are not supported by this script."
echo
echo "You can override the OS detection by setting os= and dist= prior to running this script."
echo "You can find a list of supported OSes and distributions on our website: https://packagecloud.io/docs#os_distro_version"
echo
echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"
import React from 'react';
import Editor from 'jsoneditor';
import 'jsoneditor/dist/jsoneditor.css';
export default class JSONEditor extends React.Component {
componentDidMount() {
const options = {
mode: 'tree',
modes: ['code', 'text', 'tree'],
onChange: () => {
import React from 'react';
import { withStyles } from 'material-ui/styles';
import { browserHistory } from 'react-router';
import { compose } from 'recompose';
import Grid from 'material-ui/Grid';
import Menu, { MenuItem } from 'material-ui/Menu';
import User from './User';
import { withState, withAuth } from '../helpers';