Skip to content

Instantly share code, notes, and snippets.

View bogdanpetru's full-sized avatar
🍓

Bogdan bogdanpetru

🍓
View GitHub Profile
function CloseIcon({
size = 14,
rest,
}) {
return <svg
{...rest}
width={size}
height={size}
viewBox="0 0 24 24"
>
> [email protected] cosmos C:\Users\b\www\illustrated-algorithms
> cosmos --config cosmos/cosmos.config.js
Listening at http://localhost:8989/
webpack built c7ed350c7a767ac77376 in 2139ms
Hash: c7ed350c7a767ac77376
Version: webpack 1.14.0
Time: 2139ms
Asset Size Chunks Chunk Names
> [email protected] dev C:\Users\b\www\illustrated-algorithms
> next
> Using .babelrc defined in your app root
c ERROR Failed to compile with 3 errors
error in ./algorithms/binary-search.js
Module build failed: ReferenceError: Unknown plugin "../babel-plugin-trace-context/lib/index" specified in "C:\\Users\\b\\www\\illustrated-algorithms\\algorithms\\.babelrc" at 0, attempted to resolve relative to "C:\\Users\\b\\www\\illustrated-algorithms\\algorithms"
@bogdanpetru
bogdanpetru / assign
Last active February 15, 2017 10:26
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function assign() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
@bogdanpetru
bogdanpetru / README.md
Created July 8, 2017 11:18
Project Development

Front-end Project Development

@bogdanpetru
bogdanpetru / solution.js
Created January 25, 2018 23:09
Training ticket - Solution
function intersects(A, a, b) {
const rangeAStart = a - A[a];
const rangeAEnd = a + A[a];
const rangeBStart = b - A[b];
const rangeBEnd = b + A[b];
return (
// the start of next range is included
rangeAStart <= rangeBStart && rangeAEnd >= rangeBStart
||
//
import React, {Component} from 'react';
import PropTypes from 'prop-types';
// packages
import l10nUtils from '@8x8/cm-l10n';
// components
import List from './../../components/listView/list.component';
/**
* Members list component

Member List API

  • sortable: Boolean
  • prepareColumns: (columns) => columns
  • prepareData: (data, rowData) => data
  • prepareHeaderData: () => headerData
  • onOrderChange: (ids?) => {}
  • onRemoveMembers: (ids) => {}
  • selectedItems: controlled property
@bogdanpetru
bogdanpetru / understanding-word-vectors.ipynb
Created October 22, 2018 20:05 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
<style>
/* overwrite big first letter in p */
article.article.view-mode-full .field--name-body p:first-of-type::first-letter, article.page.view-mode-full .field--name-body p:first-of-type::first-letter,
article.article.view-mode-full .field--name-body p:first-of-type, article.page.view-mode-full .field--name-body p:first-of-type {
font-size: inherit;
color: inherit;
margin: 0;
font-weight: inherit;
padding: 0;
float: none;