Skip to content

Instantly share code, notes, and snippets.

View koldovsky's full-sized avatar

Vyacheslav Koldovskyy koldovsky

View GitHub Profile
@jonico
jonico / github-collaborators.sh
Last active October 20, 2024 13:53 — forked from muhammaddadu/github-add-colaborator
List, add and remove multiple collaborators from multiple repositories
#!/bin/bash
function help {
echo "Add collaborators to one or more repositories on github"
echo ""
echo "Syntax: $0 -u user [-l] [-D] -r repo1,repo2 <collaborator id>"
echo ""
echo " -u OAuth token to access github"
echo " -l list collaborators"
echo " -r repositories, list as owner/repo[,owner/repo,...]"
.wrapper {
display: flex;
justify-content: space-between;
}
@dimpiax
dimpiax / declaration_example.js
Last active October 31, 2016 22:33
Ukraine's declaration parser example (part)
// link to declaration.json – https://public-api.nazk.gov.ua/v1/declaration/41462809-89e2-4ad9-a9c9-54bb258541df
// usage: node declaration_example.js
'use strict';
var fs = require('fs');
function init() {
let file = fs.readFileSync('declaration.json');
let json = JSON.parse(file);
@cletusw
cletusw / .eslintrc
Last active February 29, 2024 20:24
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names