This guide assumes you have some familiarity with MLX and want to make your MLX model or algorithm as efficient as possible.
The guide covers the following:
This guide assumes you have some familiarity with MLX and want to make your MLX model or algorithm as efficient as possible.
The guide covers the following:
| #!/bin/bash | |
| # Human-friendly UNIX aliases & functions | |
| # Navigation | |
| alias up='cd ..' # Move up one directory | |
| alias home='cd ~' # Move to home directory | |
| # File & Directory Operations | |
| alias list='ls -A' # Show all files | |
| alias newdir='mkdir -p' # Create directory (including parents) | 
| import React from 'react'; | |
| import { shallow } from 'enzyme'; | |
| import MyComponent from '../src/my-component'; | |
| const wrapper = shallow(<MyComponent/>); | |
| describe('(Component) MyComponent', () => { | |
| it('renders without exploding', () => { | |
| expect(wrapper).to.have.length(1); | |
| }); | 
Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten | 
rsync (Everyone seems to like -z, but it is much slower for me)
| // Require.js allows us to configure shortcut alias | |
| require.config({ | |
| // The shim config allows us to configure dependencies for | |
| // scripts that do not call define() to register a module | |
| shim: { | |
| 'socketio': { | |
| exports: 'io' | |
| }, | |
| 'underscore': { | |
| exports: '_' |