Skip to content

Instantly share code, notes, and snippets.

View adrienjoly's full-sized avatar
☺️
In the flow

Adrien Joly adrienjoly

☺️
In the flow
View GitHub Profile
@flaviocopes
flaviocopes / check-substring-ends-with.go
Last active November 15, 2021 09:34
Go: check if a string ends with a substring #golang
package main
import (
"strings"
)
func main() {
strings.HasSuffix("foobar", "bar") // true
}
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 7, 2024 17:49
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@vvo
vvo / .profile
Last active November 7, 2017 12:58
spr command line
#!/usr/bin/env bash
function spr() {
remoteOrigin=$(git remote get-url origin)
originGitHubUser=${remoteOrigin#git@github.com:*}
originGitHubUser=${originGitHubUser%%/*}
if [[ $1 == "--"* ]] # spr --branch
then
params=(${@:1})
@twolfson
twolfson / .gitignore
Last active March 27, 2020 20:29
Proof of concept to explore media keys for https://github.com/twolfson/google-music-electron/issues/31
node_modules/
@omgmog
omgmog / gist:33ec177eea6b78adbaf3
Created May 28, 2014 14:28
Convert an m4v to gif with ffmpeg
ffmpeg -i input.m4v -pix_fmt rgb24 -r 10 -y -s [width]x[height] output.gif
@flc
flc / rot13.go
Created September 4, 2013 15:59
A Tour of Go - Exercise: Rot13 Reader http://tour.golang.org/#61
package main
import (
"io"
"os"
"strings"
//"fmt"
"bytes"
)
@yereby
yereby / .gitconfig
Last active June 14, 2016 18:12
Git config file
[user]
email = your@email.com
name = "Your name"
[alias]
b = branch -v
bd = branch -d
bD = branch -D
br = branch
ci = commit
cim = commit -m
@gorbiz
gorbiz / trello-card-title-markdown.user.js
Last active September 12, 2023 05:50
Add support for bold and emphasized Markdown in Trello card titles using a User Script.
// ==UserScript==
// @name Trello card title Markdown
// @version 0.4.0
// @homepage https://gist.github.com/gorbiz/6062481
// @description Add support for bold and emphasized Markdown in card titles
// @match https://trello.com/b/*
// @match http://trello.com/b/*
// ==/UserScript==
function markdownAll() {
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@nijikokun
nijikokun / readme.utils.md
Created December 1, 2012 01:13
Javascript Utilities, Snippets, and Knowledge Base;