Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

opak OpakAlex

🏠
Working from home
View GitHub Profile
View metric.rb
module Metric
module Formula
class Nps < Base
end
end
end
module Metric
module Formula
View webpack.config.dev.js
// @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
View 1.js
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';
View array_utils.rb
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
View keybase.md

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:

View .vimrc
set nocompatible
set nobackup
set nowritebackup
set noswapfile
set showcmd
set number
set incsearch
set laststatus=2
set splitbelow
set splitright
View script.deb.sh
#!/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"
View editor.js
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: () => {
View auth.js
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';
View 1.js
import XMPP from 'stanza.io'
import Actions from './actions';
import {
buildRoomJid,
buildJid,
buildConfig,
buildMessagesHistory,
createLogger
} from './utils';
You can’t perform that action at this time.