Skip to content

Instantly share code, notes, and snippets.

Latam po mieście

Piotr Kowalski piecioshka

Latam po mieście
Block or report user

Report or block piecioshka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aeschright /
Last active Jul 5, 2019
A note about npm cli work status

When will npm@6.9.1 be released (and other PRs merged?)

On March 22, npm fired several members of the open source and community team for discussing workplace conditions and other labor organizing activities. As a result, core employee contributors to the npm cli were removed from the project, and others have left in solidarity or put their work on hold.

Multiple claims were filed with the NLRB on this matter. The NLRB has investigated and found sufficient evidence of validity to proceed. The National Labor Relations Act of 1935 protects US employees' right to engage in discussions of workplace concerns without threat of retaliation -- and awareness of the importance of how we treat each other is something I valued so much in collaborating with the cli team. How can we work together if we aren't free to discuss what we need?

It's disappointing for all of us to find the work we were doing interrup

archiewald /
Last active Mar 26, 2019
[warn pushing to protected branches] #git
protected_branches=('master' 'develop')
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
for protected_branch in "${protected_branches[@]}"
if [ $protected_branch = $current_branch ]
View gist:6440baf05587761f742d5bfc66cd9224
#!/usr/bin/env bash
cd ./tests
for i in $(ls -d */);
cd ${i};
echo "------------------------------------------"
echo "Testing " ${i}
echo "------------------------------------------"
rsp /
Last active Nov 1, 2018
How to create a Pull Request on GitHub

How to create a Pull Request on GitHub

1. Fork the repository:

![Fork the repo][fork-repo]

2. Select user or organization to fork as:

(if you belong to one or more organizations with appropriate permissions)


I bundled these up into groups and wrote some thoughts about why I ask them!

If these helped you, I'd love to hear about it!! I'm on twitter @vcarl_ or send me an email

Onboarding and the workplace

  • How long will it take to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
rsp /
Last active Jul 11, 2019
Git Strict Flow and GitHub Project Guidelines - setup rules and git flow for commercial and open-source projects by @rsp

Git Strict Flow and GitHub Project Guidelines

Or how to turn this:

into this:

rendfall / angular-tabs.component.ts
Created Sep 28, 2017
Angular 2+ tabsComponent
View angular-tabs.component.ts
import { AfterContentInit, Component, Input, OnChanges, SimpleChanges } from '@angular/core';
interface TabInterface{
active: boolean;
name: string
selector: 'app-tab',
template: `<div class="tab" [hidden]="!active"><ng-content></ng-content></div>`,
myshov / function_invocation.js
Last active Jul 8, 2019
11 Ways to Invoke a Function
View function_invocation.js
(_ => console.log(2))();
eval('console.log(3);');, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);, null, [9]);, null, 10);
SitePointEditors / dom-helper.js
Created Mar 28, 2017 — forked from m3g4p0p/dom-helper.js
Mini jQuery, sort of.
View dom-helper.js
* A collection of helper prototype for everyday DOM traversal, manipulation,
* and event binding. Sort of a minimalist jQuery, mainly for demonstration
* purposes. MIT @ m3g4p0p
window.$ = (function (undefined) {
* Duration constants
* @type {Object}
eonil / gist:f6031d17401bd167f28391ccd0642dbe
Created Feb 16, 2017
How to replace string in files in Bash...
View gist:f6031d17401bd167f28391ccd0642dbe
find . -name *.json | xargs sed -i -e 's/\"AAA\"/\"BBB\"/g'
You can’t perform that action at this time.