Skip to content

Instantly share code, notes, and snippets.

View jsparmani's full-sized avatar

Jay Parmani jsparmani

View GitHub Profile
@danialkalbasi
danialkalbasi / PowerTranslatorDemo.js
Last active October 27, 2020 07:01
Power Translator Demo
import React, { Component } from 'react';
import { PowerTranslator, ProviderTypes, TranslatorConfiguration } from 'react-native-power-translator';
import { View, ScrollView, TouchableOpacity, Text } from 'react-native';
export default class PowerTranslatorDemo extends Component {
constructor() {
super();
this.state = { languageCode: 'fr' };
}
@chrismccoy
chrismccoy / gitcheats.txt
Last active July 16, 2024 11:44
git cheats
# alias to edit commit messages without using rebase interactive
# example: git reword commithash message
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f"
# count total commits in a repo
git rev-list --all --count
# edit all commit messages
git rebase -i --root