Skip to content

Instantly share code, notes, and snippets.

View rptoma's full-sized avatar
🎯
Focusing

Toma Radu-Petrescu rptoma

🎯
Focusing
  • Bucharest, Romania
View GitHub Profile
@rptoma
rptoma / change_add.sh
Last active May 13, 2017 18:09
Add mail and change email - GIT
#!/bin/sh
git filter-branch --env-filter '
OLD_NAME=“oldname”
CORRECT_NAME=“correctname”
CORRECT_EMAIL=“[email protected]
if [ "$GIT_COMMITTER_NAME" = "$OLD_NAME” ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
//: Playground - noun: a place where people can play
import UIKit
import Charts
import PlaygroundSupport
func createChartData() -> BarChartData {
var entries = [BarChartDataEntry(x: 1, y: 1000000), BarChartDataEntry(x: 2, y: 1000100)]