Skip to content

Instantly share code, notes, and snippets.

🤖
so proud of my bot children

Gregor Martynus gr2m

Block or report user

Report or block gr2m

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
@gr2m
gr2m / octokit_pika_build_setup.md
Last active May 21, 2019
This is a living document on JavaScript Octokit’s build setup using pika build
View octokit_pika_build_setup.md

Octokit.js build setup using @pika/pack

Install @pika/pack and build plugins

npm install --save-dev @pika/pack @pika/plugin-build-node @pika/plugin-build-web @pika/plugin-ts-standard-pkg pika-plugin-unpkg-field @pika/plugin-bundle-web

Configuration

View 01_README.md

Local setup

git clone git@gist.github.com:48ad793b3fb7dbb59bcd696bbf75baee.git github-lock-issue-test
cd github-lock-issue-test
npm install
node github-lock-issue-test.js

Should log

@gr2m
gr2m / list_offlinefirst_posts.graphql
Created Jul 19, 2017
With GitHub’s new GraphQL API, you can send a single request to list of files with their content. Try it out on https://developer.github.com/v4/explorer/
View list_offlinefirst_posts.graphql
{
organization(login: "offlinefirst") {
repository(name: "offlinefirst.org") {
object(expression: "gh-pages:_posts/") {
... on Tree {
entries {
object {
... on Blob {
text
}
@gr2m
gr2m / linked_in_delete_all_messages.js
Created Mar 2, 2017
This will delete all your messages on linked in. Run on https://www.linkedin.com/messaging/?trk=nav_utilities_inbox. You are welcome :)
View linked_in_delete_all_messages.js
$('[data-control-name=clear_conversation]').each(function(){this.click();$('[data-control-name=clear_conversation_confirm]').click()})
View hoodie-updates-nov-2016.md

November was a Dev Beaver-kind of month. Lots of development in preparation for the Hoodie Village release. Dale from Appback started working on Hoodie’s Task Module, the last big piece left to finish for Hoodie’s new plugin architecture. Benjamin did not only get 4 pull requests merged, he is also working on enabling app-specific plugins, very soon: https://github.com/hoodiehq/hoodie/pull/637. If you are interested how a plugin will look like, we created an example: https://github.com/hoodiehq/hoodie-plugin-example.

@gr2m
gr2m / find_missing_dependencies.js
Last active Sep 10, 2016
A tricky problem with npm package tests is that all devDependencies are present. If a package that is needed is only defined as devDependencies then tests will pass, but it will break when required by another package.
View find_missing_dependencies.js
// It could be done more elegantly, instead of using glob it could walk the
// relative dependencies, so it would be more flexible and could actually
// be turned into a package that could be run before publishing to npm
var fs = require('fs')
var detective = require('detective')
var glob = require('glob')
var _ = require('lodash')
var buildinModuleNames = require('builtin-modules/static')
View oscon_contribute_info.md

Hello, OSCON Contribute!

Come prepared

If you just want to play around with Hoodie, you can take our Hoodie Camp Tutorial and check out our Tracker App and it’s uber-simple source code.

If you want to contribute art, code, design, documentation or editorial work, the basic requirements are

  1. A GitHub account
    GitHub is not only where Hoodie’s code is hosted, but also our website, blog, documentation and much more. We also use GitHub issues for general discussions.
View semantic-release-and-greenkeeper-demo-outline.md

I will give a talk on semantic-release and Greenkeeper this Thursday at Node.js Boston. I want to live-demo publishing packages, update workflows and an accidental breaking change and how Greenkeeper helps with that. I’m looking for a good "story" for what these packages do, how to call them, etc. Any idea? Please ping me on Twitter

Outline

Goal: create a CLI tool / app with a dependency and a sub dependency.

  • Show quickly who to publish all 3 tools with semantic-release
View hoodie-status-2016-01-10.md

What’s new in Hoodie Code land

Everything is gearing towards our “Tent Release”, not yet meant for production, but Hoodie is using PouchDB for sync and is rewritten from the ground up.

The core modules, Account (server, client) & Store (server, client), are now feature complete. The Hoodie main module (server, client) which pulls everything together, is still a bit rough around the edges, but ready, too.

We also created a new Hoodie default application: Something tracker. It’s a minimalistic app to track numbers and time without telling any meaning, so it’s great as a starting point to explore Hoodie and build an app

You can’t perform that action at this time.