Skip to content

Instantly share code, notes, and snippets.

View intellij

Has field live template, suggested name: hf

public boolean has$SET_NAME$() {
  return hasFieldSet("$SET_NAME$");

PresenceTrackingSetter Template,

#set($paramName = $helper.getParamName($field, $project))
View hash.c
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int key;
int val;
struct node *next;

Sign an electron dev executable,

$ codesign --deep --force --verbose --sign - node_modules/electron/dist/

Made some updates to this PR due after following up on the error Akash got in running the tests locally. In turn this past week I have to come to learn a lot about Visual Regression Testing that I want to share here and discuss with you all. The things I want to share are organized in these topics,

  • Non deterministic rendering of images
  • Electron/Chrome non deterministic states
  • Visual regression work flows
  • Tools & Literature

On Non deterministic rendering

SimplyAhmazing /
Last active Jul 26, 2017
Git submodules on CI Notes

Add to Travis

    - sed -i 's/\/\/\//' .gitmodules
    - git submodule update --init --recursive

or apply sed call to repo:

SimplyAhmazing /
Last active Jul 24, 2017
Track call depth of a method relative to other methods in a class
import inspect
def call_depth(instance):
methods_to_consider = [
for func_name, _ in inspect.getmembers(
instance, predicate=inspect.ismethod)
stack_funcs = [i.function for i in inspect.stack()]
SimplyAhmazing /
Last active Aug 2, 2017
Shows an example of using the Opentrons API in Jupyter
# To use this API:
# Uninstall previously installed API
# pip uninstall -y opentrons
# Install API from here
# pip install "git+"
# imports
from opentrons import robot, containers, instruments
num_samples = 8
DNA_delay = 6
heat_shock_delay = 6
cold_delay = 6
DNA_vol = 2
cell_vol = 25
total_vol = 27
LB_vol = 200

Smart Modules API (sample)

Instruments (attached to the robot)


pump = instruments.Pipette(axis='a', ...)
pump.dispense(volume, <location>)
SimplyAhmazing /
Created Apr 24, 2017
Sample Smart Modules Protocol
from opentrons import robot, instruments, containers
from opentrons import smart_module
md = smart_module.MagDeck()
sh = smart_module.Shaker()