Skip to content

Instantly share code, notes, and snippets.

View dgyesbreghs's full-sized avatar
🗽
Working Remote

Dylan Gyesbreghs dgyesbreghs

🗽
Working Remote
View GitHub Profile
@dgyesbreghs
dgyesbreghs / keybase.md
Last active July 7, 2016 06:22
keybase.md

Keybase proof

I hereby claim:

  • I am dgyesbreghs on github.
  • I am dgyesbreghs (https://keybase.io/dgyesbreghs) on keybase.
  • I have a public key ASBHUNVL9Uq0RDF3qAaha3lJEaJotk5Qpx1JSO2U1Gp1uwo

To claim this, I am signing this object:

require 'rubygems'
require 'git'
g = Git.open(Dir.pwd)
g.tags.each do |tag|
if tag.name.include? "VersionTwo"
g.delete_tag(tag.name)
end
end
git ls-remote --tags origin | awk '/^(.*)(\s+)(.*?)(Nightly_versiontwo_)(.*[0-9])$/ {print ":" $2}' | xargs git push origin
@dgyesbreghs
dgyesbreghs / FirstWeekDay
Created June 30, 2015 12:29
Get first day of a week with Swift
//: Playground - noun: a place where people can play
import UIKit
let today = NSDate.new()
let gregorian = NSCalendar.currentCalendar()
let weekdayComponetns = gregorian.components(NSCalendarUnit.Weekday, fromDate: today)
let compontentsToSubstract = NSDateComponents.new()