Skip to content

Instantly share code, notes, and snippets.

@Realtin
Realtin / monorepo-todo.md
Last active April 5, 2018 11:55
What is left todo for the monorepo release

TODO Monorepo

⚠️ Needs to be fixed before further testing ⚠️

Features

  • Greenkeeper can find all package.json files in a repository.
  • The combined package information from all package.json files is stored in a repository document in the Greenkeeper database.
  • By default there will be one pull request per dependency (affecting multiple package.json files).
@Realtin
Realtin / example.js
Last active December 12, 2017 14:36
// Version 1.0.0
function changeCase (theString) {
return theString.toUpperCase()
}
// Version 1.1.0 (Feature)
function changeCase (theString, allowLowerCasing = false) {
if (allowLowerCasing && theString.toUpperCase() === theString) {

Testing React Compnents with Jasmine

Jasmine, a BDD Testing Framework for Javascript

BDD ?

describe('Customer', () => {              // Test Suite
  describe('Creation', () => {            // grouping related specs
    it('has a fitting title', () => {     // the actual spec!
      expect(comp.refs.title.innerText).toBe('New Customer');
    });
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; take a vector v and index i
;; index n + index n-1
(defn add [v i]
(+
;; 0 is default when return value is nil
(get v i 0)
(get v (- i 1) 0)))
; calculates the next row of a given row
(defn new-row [v]
;; Your file has been converted to the new flat format.
;; Conversion does not preserve comments or indentation.
;; File is backed up at /Users/Brunhilde/Library/Application Support/LightTable/User/user.behaviors.bak
[
[:app :lt.objs.settings/pair-keymap-diffs]
[:editor :lt.objs.editor/no-wrap]
[:editor :lt.objs.editor/line-numbers]
@Realtin
Realtin / zshrc
Last active March 31, 2016 12:16
#!/usr/bin/env zsh
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Path to z
. /Users/Brunhilde/Documents/z/z.sh
autoload -U colors && colors
[2015-07-08T09:14:09] DEBUG PID-5098 TID-4987280 Rails:
[2015-07-08T09:14:09] INFO PID-5098 TID-4987280 Rails: Started GET "/" for 192.168.11.1 at 2015-07-08 09:14:09 +0000
[2015-07-08T09:14:11] INFO PID-5098 TID-4987280 ActionController::Base: Processing by HomeController#show as HTML
Rendered home/default.haml within layouts/application (75.3ms)
Rendered layouts/_open_graph.haml (15.9ms)
[2015-07-08T09:14:16] INFO PID-5098 TID-4987280 ActionController::Base: Completed 200 OK in 5235ms (Views: 5196.2ms | ActiveRecord: 0.0ms)
Rendered errors/error_404.haml within layouts/error_page (8.9ms)
Rendered errors/error_422.haml within layouts/error_page (1.5ms)
Rendered errors/error_500.haml within layouts/error_page (17.7ms)
Rendered errors/error_404.haml within layouts/error_page (9.7ms)
vagrant@development:~/diaspora_src$ bin/rspec spec/models/photo_spec.rb:162
=> Building fixtures
=> Built aspect_memberships.yml, aspects.yml, contacts.yml, people.yml, profiles.yml, and users.yml
Run options:
include {:locations=>{"./spec/models/photo_spec.rb"=>[162]}}
exclude {:performance=>true}
Randomized with seed 59971
1) Photo with a saved photo containing EXIF data should not contain EXIF data if user prefer