Skip to content

Instantly share code, notes, and snippets.

View machineloop's full-sized avatar

machineloop machineloop

View GitHub Profile
@machineloop
machineloop / modules-and-functions-6.exs
Last active May 22, 2020 15:00
Programming Elixir exercise 6 in modules and functions chapter
# Prompt directly from book:
# Exercise: ModulesAndFunctions-6
# I’m thinking of a number between 1 and 1000.…
# The most efficient way to find the number is to guess halfway between the low and high numbers of the range. If our guess is too big, then the answer lies between the bottom of the range and one less than our guess. If our guess is too small, then the answer lies between one more than our guess and the end of the range.
# Your API will be guess(actual, range), where range is an Elixir range. Your output should look similar to this:
# ​  iex> Chop.guess(273, 1..1000)

Keybase proof

I hereby claim:

  • I am machineloop on github.
  • I am machineloop (https://keybase.io/machineloop) on keybase.
  • I have a public key ASBYrWCFdoSDu1yrcBjksblTi1M-CF2O2Ha5IcEhjLo7Ggo

To claim this, I am signing this object:

In order to get rid of the dock icon, you must modify the file named 'Info.plist' inside the Application's package (i.e. Sherlock.app/Contents/Info.plist). Open this file in your favorite text editor and add the following section (if it's already present simply change the 0 to a 1 in the string tag:
<KEY>NSUIElement</KEY>
<STRING>1</STRING>
NOTE: I substituted the standard square brackets for the purposes of posting here; you must substitute the angle brackets when editing. So far I've hidden my Sherlock and System Preferences icons. With the System Prefs you will have to write-enable the 'Info.plist' file by changing the permissions in a Terminal window:
sudo chmod 464 /Applications/System Preferences.app/Contents/Info.plist
Enjoy!
@machineloop
machineloop / gist:201c5aedabc708d02590
Last active August 29, 2015 14:14
Great article introducing functional programming and vim export for slides.com
http://maryrosecook.com/blog/post/a-practical-introduction-to-functional-programming
http://www.grimmo.it/posts/converting-slidescom-for-offline-usage.html
@machineloop
machineloop / app.js
Created September 10, 2014 18:24
Nite-out
'use strict';
angular.module('nite-out', [
'nite-out.main',
'nite-out.mainServices',
'nite-out.checkout',
'nite-out.marketTest',
'nite-out.auth',
'nite-out.authServices',
'nite-out.movies',
controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) {
$scope.$on('authLoaded', function() {
$scope.isExpert($scope.main.serieId);
$scope.isMember($scope.main.serieId);
});
$scope.loadAuth = function() {
Auth.load().success(function(data) {
$scope.main.user = data.user;
$scope.$broadcast("authLoaded");