Skip to content

Instantly share code, notes, and snippets.

View ndrluis's full-sized avatar

Andre Luis Anastacio ndrluis

View GitHub Profile
@ndrluis
ndrluis / awk_functions.awk
Created June 24, 2013 14:25
awk functions
# TRIM
function ltrim(s) { sub(/^[ \t]+/, "", s); return s }
function rtrim(s) { sub(/[ \t]+$/, "", s); return s }
function trim(s) { return rtrim(ltrim(s)); }
@ndrluis
ndrluis / tmux-ngrok.md
Created May 19, 2021 12:53 — forked from keithpitty/tmux-ngrok.md
Pairing with tmux and ngrok

Steps for Remote Pairing using tmux and ngrok

The following steps facilitate remote pairing using:

  • tmux which allows terminal sessions to be attached to different terminals, and
  • ngrok which provides secure tunnels to your localhost

1. Install tmux

OS X: brew install tmux

@ndrluis
ndrluis / keybase.md
Last active September 21, 2020 19:59

Keybase proof

I hereby claim:

To claim this, I am signing this object:

#include <Cocoa/Cocoa.h>
#include <mono/metadata/appdomain.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/image.h>
#include <mono/metadata/class.h>
#include <mono/metadata/object.h>
// http://www.jerrodputman.com/2010/01/10/the-unityobjective-c-divide/
MonoMethod *update_method;

Project

Command Action
[SPC] p p List projects
[SPC] p f Fuzzy finder
[SPC] p t Open Tree view

Ruby/Rails

# ~/.tmuxinator/gas_manager.yml
name: gas_manager
root: ~/projects/personal/gas_manager
windows:
- editor: vim .
- server: layout: main-horizontal
panes:
- bundle exec rails s
- bundle exec rails c
[info] Updating {file:/Users/andreanastacio/Workspace/src/java/vote-no-filme/}vote-no-filme...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 4 Scala sources and 2 Java sources to /Users/andreanastacio/Workspace/src/java/vote-no-filme/target/scala-2.10/classes...
[info] Creating IDEA module for project 'vote-no-filme' ...
[info] Running compile:managedSources ...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2-javadoc.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.10.2!scala-library.jar(doc) (53883ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2-sources.jar ...
@ndrluis
ndrluis / gist:7718919
Last active December 29, 2015 19:39
testing private method
describe "Blah::MyObject" do
before do
my_object = Blah::MyObject.new
end
describe "#thing" do
my_object.send(:thing).should eq(2)
end
end
@ndrluis
ndrluis / applications.yml
Last active December 28, 2015 23:19
Rukuli Spec 1
IMAGE_VIEWER:
darwin:
'Preview'
cygwin|mswin|mingw|bccwin|wince|emx:
"Paint"
FILE_EXPLORER:
darwin:
'Finder'
cygwin|mswin|mingw|bccwin|wince|emx:
"Explorer"
using UnityEngine;
using System.Collections;
public class PlayerBehaviour : MonoBehaviour {
public float speed = 6.0F;
public float jumpSpeed = 8.0F;
public float gravity = 20.0F;
private Vector3 moveDirection = Vector3.zero
// o resto do codigo .....