Skip to content

Instantly share code, notes, and snippets.

View asierba's full-sized avatar

Asier Barrenetxea asierba

View GitHub Profile
@asierba
asierba / git aliases
Last active August 29, 2015 14:01
git aliases for lazy people - like me :)
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias got='git '
@asierba
asierba / RakeFile.rb
Last active August 29, 2015 14:01
How to use :symbols when defining task dependencies
namespace :namespace1 do
desc "task1"
task :task1 do
puts "task1 in namespace1"
end
desc "task2"
task :task2 do
puts "task2 in namespace1"
end
name := "Name goes here"
version := "0.0.1"
libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0" % "test"
@asierba
asierba / gist:44aeefd3e7bf743f4ee6
Last active August 29, 2015 14:13
My Boxstarter script
# START http://boxstarter.org/package/nr/url?
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst GoogleChrome
cinst sublimetext2
cinst spotify
cinst skype
cinst NugetPackageExplorer
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias gitext='gitextensions &'
@asierba
asierba / Autofixture.cs
Last active August 29, 2015 14:24
Two xunit tests to show how Automocking can be achieved with AutoFixture
using Moq;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
using Xunit;
namespace Autofixture
{
public class Tests
{
@asierba
asierba / unittestconsole.cs
Last active January 19, 2024 11:12
How to mock console in unit tests
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("What's your name?");
var name = Console.ReadLine();
Console.WriteLine(string.Format("Hello {0}!!", name));
}
[Test]
Mentoring [Find mentors]
=========
Format
-------
- Set goal - define successful mentorship
- Set frenquency and duration
- Set Clear deadline?
- Set Milestones
- Mentee to set agenda before each meeting
fibo 0 = 0
fibo 1 = 1
fibo x = fibo(x-1) + fibo(x-2)
allFibos 0 = [fibo 0]
allFibos x = allFibos(x-1) ++ [fibo x]
fibo :: Int -> Int

Global Day Code Retreat Facilitaor training

  • Code retreat structure to follow:
    • 6 sessions
    • 45 mins coding + 5 min retro
    • Final retro at the end
  • Introduction:
    • Open question: "What is good code? " -> quick discussion, people will end up mentioning 4 rules of sinle design
    • mention 4 rules of simple design