This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertSheetToForm() { | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = spreadsheet.getActiveSheet(); | |
var data = sheet.getDataRange().getValues(); | |
var form = FormApp.create(sheet.getName()).setTitle(sheet.getName()); | |
const items = form.getItems(); | |
items.forEach(function (item) { | |
form.deleteItem(item.getIndex()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT='%@ ➜${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}%{$reset_color%}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tap "adoptopenjdk/openjdk" | |
tap "aws/tap" | |
tap "dart-lang/dart" | |
tap "heroku/brew" | |
tap "homebrew/bundle" | |
tap "homebrew/cask-versions" | |
tap "homebrew/services" | |
tap "instantclienttap/instantclient" | |
tap "sass/sass" | |
brew "readline" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lombok.NoArgsConstructor; | |
import java.time.DayOfWeek; | |
import java.time.LocalDate; | |
import static java.time.DayOfWeek.SATURDAY; | |
import static java.time.DayOfWeek.SUNDAY; | |
import static lombok.AccessLevel.PRIVATE; | |
@NoArgsConstructor(access = PRIVATE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Vikhyath Choradia", | |
"label": "{ Lead Consultant | Developer } at ThoughtWorks", | |
"image": "https://www.gravatar.com/avatar/9dee738b5448f55e2be90acc97ab9e61?s=180", | |
"email": "[email protected]", | |
"phone": "+917200494336", | |
"url": "", | |
"summary": "Explored in the banking, retail and health domain spanning across Mobile, Web and Data Platforms.\n I am a full stack Developer with about six years of experience in Agile methodologies. \n Worked in Java, R, Android with some smaller contributions in C, Golang etc. \n Apart from Application development, have also pursued skills in Mobile - apps & DevOps.", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ask for the administrator password upfront | |
sudo -v | |
HOST=$( whoami ) | |
function install() { | |
echo "Download Mac Cleaner" | |
curl -o /Users/${HOST}/cmm.sh https://gist.githubusercontent.com/vikytech/f28c5480c1e1d8c2688981803b45a29a/raw/cleaner.sh | |
echo "Init Mac Cleanup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
message=$(git log -1 --pretty=%B) | |
PATTERN="^(minor-fix|major-fix|patch): " | |
incrementVersion () { | |
version="$1" | |
major=0 | |
minor=0 | |
patch=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Example | |
#cd ../performance-suite | |
#sh run.sh | |
#OUT=$? | |
#cd - | |
#if [ $OUT -eq 1 ]; then | |
# echo "\033[31m Gatling failed with exit code $OUT" | |
# echo "\033[41m Push Rejected." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$regex = /\A(\[(\w+)(\/(\w*))?(\/(\w*))?\])\s+(\[#\w{2,10}\])\s+(.*)$/i | |
message_file = ARGV[0] | |
message = File.read(message_file) | |
def red_background(text);"\e[41m#{text}\e[0m";end | |
# enforced short and crisp commit message | |
if message.length > 150 |
NewerOlder