As configured in my dotfiles.
start new:
tmux
start new with session name:
/** | |
* A LessCSS version of the 960 Grid System | |
* | |
* http://lesscss.org/ | |
* http://960.gs/ | |
*/ | |
/********************************************************************* | |
* Settings * | |
*********************************************************************/ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Many users of Git are curious about the lack of delta compression at the object (blob) level when commits are first written. This efficiency is saved until the pack file is written. Loose objects are written in compressed, but non-delta format at the time of each commit.
A simple run though of a commit sequence with only the smallest change to the image (in uncompressed TIFF format to amplify the observable behavior) aids the understanding of this deferred and different approach efficiency.
Create the repo:
# encoding: utf-8 | |
"""Experimental Solr Grouping / Field Collapsing backend for Haystack 2.0""" | |
# NOTE: You must be running the latest Pysolr master - no PyPI release yet! | |
# See https://gist.github.com/3750774 for the current version of this code | |
# See http://wiki.apache.org/solr/FieldCollapsing for the Solr feature documentation | |
from __future__ import absolute_import | |
import logging | |
from django.db.models.loading import get_model |
Unidirectional is a term coined by React engineers to describe the data flow of an application. Unidirectional apps employ functional reactive programming techniques such as immutability, purity, and most importantly unidirectional (as opposed to bidirectional) data flow.
A unidirectional app is defined by no mutable references no two-way references between concerns.
#!/usr/bin/env python | |
""" | |
mocking requests calls | |
""" | |
import mock | |
import unittest | |
import requests | |
from requests.exceptions import HTTPError |
// https://github.com/alfonsomunozpomer/react-fetch-mock | |
import React from 'react' | |
import fetchMock from 'fetch-mock' | |
import Enzyme from 'enzyme' | |
import {shallow, mount, render} from 'enzyme' | |
import Adapter from 'enzyme-adapter-react-16' | |
Enzyme.configure({ adapter: new Adapter() }) |
Scenario: you have both OpenSSL 1.0 and 1.1 installed (using Brew) in your OSX system and you want to switch the current active version without removing other versions that already installed. Here is how to do it.
$ ls -al /usr/local/Cellar/openssl*
/usr/local/Cellar/openssl: