Skip to content

Instantly share code, notes, and snippets.

View Goles's full-sized avatar

Nicolas Goles Goles

View GitHub Profile
@Goles
Goles / vim.rb
Created April 28, 2012 01:04 — forked from mgrouchy/vim.rb
Vim formula for Homebrew < AD Default
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8'
version '7.3.462'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
@Goles
Goles / vim.rb
Created May 4, 2012 19:23
Vim formula for brew for Snow Leopard with osx-gcc-installer
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8'
version '7.3.462'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
// In my Core Data Model a Category has a one to many relation with CategoryMembers
- (void) loadCoreDataFromJSONArray:(NSArray *) jsonArray
{
[jsonArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
// Create our category
Category *category = [NSEntityDescription insertNewObjectForEntityForName:@"Category" inManagedObjectContext:self.managedObjectContext];
category.name = [obj objectForKey:@"name"];
// Traverse the category members
NSArray *membersArray = [obj objectForKey:@"members"];
@Goles
Goles / tmux.conf
Created March 31, 2013 19:24
My tmux conf
###
### Nicolas Goles tmux config file.
###
set-option -g default-command "reattach-to-user-namespace -l zsh"
set -g default-terminal "screen-256color"
set -g history-limit 20000
set-option -ga update-environment ' LANG'
set-option -ga update-environment ' LC_ALL'
#!/bin/bash
# This should work whether you are already in a TMUX session or not...
# Irssi directory is assumed to be in the user's home dir
if [ -z "$TMUX" ]
then
tmux new-session -d -s ircuser
tmux split-window -tircuser -h -l20
tmux send-keys -tircuser "tmux send-keys -t0 \"irssi\" C-m; \
tmux send-keys -t0 \"/set nicklist_height \$(stty size | cut -f1 -d' ' -)\" C-m; \
tmux send-keys -t0 \"/set nicklist_width \$(stty size | cut -f2 -d' ' -)\" C-m; \
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
# This package tracks vim directly from Vim.org and not from the debian repos.
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2'
sha1 '601abf7cc2b5ab186f40d8790e542f86afca86b7'
devel do
url 'http://ftp.de.debian.org/debian/pool/main/v/vim/vim_7.4b.004.orig.tar.gz'
PLCancelTicketSet *ticketSet = [PLCancelTicketSet ticketSet];
id<PLCancelTicket> httpTicket = [_client connectionWithRequest: req
bodyData: reqData
timeout: timeout
dispatchContext: [PLDirectDispatchContext context]
block: ^(PLHTTPResponse *response, id <PLInputStream> bodyInputStream, NSError *error)
{
// ... check for error ..
PLLimitingInputStreamFilter *inputFilter = [PLLimitingInputStreamFilter filterWithInputStream: bodyInputStream
maximumBytes: MAX_RESOURCE_DOWNLOAD_BYTES];

Keybase proof

I hereby claim:

  • I am goles on github.
  • I am goles (https://keybase.io/goles) on keybase.
  • I have a public key ASDMLb4YrDuxGgF6JnR72jlb-_NpUMKvRVjsDM1OwMutTgo

To claim this, I am signing this object:

@Goles
Goles / gist
Created February 24, 2014 12:12
This is a gist
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.0.0';
%IRSSI = (
authors => 'Brandon Black',
contact => 'brandonmblack@gmail.com',
name => 'irssi-osx-notify',
description => 'OS X Notifications for Irssi.',