What the defaults do and how to undo them
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
// C++ includes used for precompiling -*- C++ -*- | |
// Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
// | |
// This file is part of the GNU ISO C++ Library. This library is free | |
// software; you can redistribute it and/or modify it under the | |
// terms of the GNU General Public License as published by the | |
// Free Software Foundation; either version 3, or (at your option) | |
// any later version. |
package main | |
import ( | |
"log" | |
"os" | |
"syscall" | |
) | |
func main() { | |
f, err := os.Open("/tmp/pipe") |
#include <cstdlib> | |
#include <stdexcept> | |
#include <iostream> | |
using namespace std; | |
template<typename Key, typename Value> | |
class RedBlack | |
{ | |
public: | |
RedBlack() |
package com.example.nestapi; | |
import com.fasterxml.jackson.core.JsonFactory; | |
import com.fasterxml.jackson.databind.DeserializationFeature; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |
Convert .cer
certificate exported from Keychain.app to PEM format:
openssl x509 -inform der -outform pem -in moonist-ca.cer -out moonist-ca.pem
Convert .p12
bundle (certificate + key) exported from Keychain.app to PEM format:
openssl pkcs12 -in grafana.p12 -out grafana.pem -nodes
Then split resulting pem file into two separate files (certificate and key) using text editor.
import { createStore, applyMiddleware } from 'redux'; | |
import { Observable, Subject } from 'rxjs'; | |
const api = type => { | |
console.log(`calling API ${type}`); | |
return new Promise(res => setTimeout(() => res(), 500)); | |
}; | |
const actionOrder = (actions, order) => actions.every((action, index) => action.type === order[index]); | |
const actionPredicate = actions => filterableAction => actions.some(action => action === filterableAction.type); |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
First, we need to define interfaces with which we will work:
export interface Interceptable<T extends Interceptor<any, any>> {
addInterceptor(interceptor: T): Interceptable<T>;
removeInterceptor(interceptor: T): Interceptable<T>;
clearInterceptors(interceptors?: T[]): Interceptable<T>;
}
export interface Interceptor<T, D> {
#!/bin/bash | |
# TODO: skip tiny files (so small they couldn't be photos) | |
# TODO: make sure sym links and other file system oddities are handled | |
# TODO: look at paralellization for perf boost | |
# | |
# Constants | |
# | |
CHAR_COUNT=12 | |
BLOCK_COUNT=6 |