Skip to content

Instantly share code, notes, and snippets.

View refack's full-sized avatar
🕺
status

Refael Ackermann refack

🕺
status
View GitHub Profile
@dominictarr
dominictarr / readme.md
Created November 26, 2018 22:39
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.

@broros

otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

@wckdouglas
wckdouglas / README.md
Last active May 14, 2023 16:44
Running deseq2 in python

I have reused the code enough to make a package out of it.

The python package is deposited at Github. with an example in Jupyter notebook.

⚠️ this gist is out-of-date, please see the diffexpr package for a maintained version of the code

@vsemozhetbyt
vsemozhetbyt / node-check-collaborators.js
Last active May 11, 2017 15:07
Check if comment authors in PRs are Node.js collaborators
javascript: {
getCollaboratorsUsernames();
function getCollaboratorsUsernames() {
const xhr = new XMLHttpRequest();
xhr.open('GET', 'https://github.com/nodejs/node/blob/master/README.md', true);
xhr.responseType = 'document';
xhr.withCredentials = true;
xhr.onload = markAuthorsLinks;
xhr.ontimeout = xhr.onerror = (evt) => { console.log(evt); };
@ThomasR
ThomasR / PowerShell.xml
Created March 21, 2016 20:23
Syntax Highlighting for PowerShell scripts in IntelliJ IDEA
<filetype binary="false" description="PowerShell" name="PowerShell">
<highlighting>
<options>
<option name="LINE_COMMENT" value="#" />
<option name="COMMENT_START" value="&lt;#" />
<option name="COMMENT_END" value="#&gt;" />
<option name="HEX_PREFIX" value="" />
<option name="NUM_POSTFIXES" value="" />
<option name="HAS_BRACES" value="true" />
<option name="HAS_BRACKETS" value="true" />
@alexhawkins
alexhawkins / HashTable.js
Last active August 7, 2021 23:33
Correct Implementation of a Hash Table in JavaScript
var HashTable = function() {
this._storage = [];
this._count = 0;
this._limit = 8;
}
HashTable.prototype.insert = function(key, value) {
//create an index for our storage location by passing it through our hashing function
var index = this.hashFunc(key, this._limit);
@refack
refack / nodestrum.js
Last active December 21, 2015 05:28
single file nodestrum
/**package
{
"name": "nodestrum",
"description": "Some cross cutting utils",
"version": "0.10.1",
"author": "Refael Ackermann<refael@empeeric.com>(http://node.org.il)",
"homepage": "https://gist.github.com/refack/6256990/",
"repository": "https://gist.githubusercontent.com/refack/6256990/raw/nodestrum.js",
"license": "MIT",
"readme": "Some crosscutting node.js utils"