Say you have a few commits on a branch and want to squash them all
(done via git log --oneline
)
3cf1e45e Refactor
7bfc2e3b Cleanup
c203f2ba Did some fixes, adds tests
e28ebc36 Adds feature XYZ
d3ee6f4e Commit not to squash
Say you have a few commits on a branch and want to squash them all
(done via git log --oneline
)
3cf1e45e Refactor
7bfc2e3b Cleanup
c203f2ba Did some fixes, adds tests
e28ebc36 Adds feature XYZ
d3ee6f4e Commit not to squash
tell application "System Preferences" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
delay 1 | |
click the menu item "Trackpad" of the menu "View" of menu bar 1 | |
delay 1 | |
click the radio button "Point & Click" of the first tab group of window "Trackpad" | |
click checkbox 3 of tab group 1 of window "Trackpad" |
In terminal:
# normal minimum is 15 (225 ms)
$ defaults write -g InitialKeyRepeat -int 10
# normal minimum is 2 (30 ms)
$ defaults write -g KeyRepeat -int 1
$ defaults read -g InitialKeyRepeat
I hereby claim:
To claim this, I am signing this object:
require "cray" | |
module CrayTest | |
SCREEN_WIDTH = 1024 | |
SCREEN_HEIGHT = 768 | |
LibRay.init_window SCREEN_WIDTH, SCREEN_HEIGHT, "Example: input" | |
@@icon = LibRay.load_image File.join(__DIR__, "circle.png") | |
@@circle = LibRay.load_texture_from_image(@@icon) |
document.addEventListener("DOMContentLoaded", function() { | |
let webviews = document.querySelectorAll(".TeamView webview"); | |
const cssPath = 'https://raw.githubusercontent.com/Nockiro/slack-black-theme/master/custom.css'; | |
let cssPromise = fetch(cssPath).then(response => response.text()); | |
let customCustomCSS = ` | |
:root { | |
--primary: #ccc; | |
--text: #0f0; |
// Smooth Follow from Standard Assets | |
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability | |
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead. | |
using UnityEngine; | |
using System.Collections; | |
public class SmoothFollow : MonoBehaviour { | |
// The target we are following | |
public Transform target; |
Using the gem zero_downtime_migrations
A simple example is adding a migration such as adding a column with a defalut value: zero_downtime_migrations
README#Adding a Column with a Default with default: true
for a :boolean
column:
class AddDefaultToCampaignsTestingZDM < ActiveRecord::Migration
def change
add_column :direct_campaigns, :zero_migration_test, :boolean, default: true
#!/usr/bin/env ruby | |
require 'ruby-progressbar' | |
commands = [ | |
{ | |
description: 'changing into Centro Direct directory', | |
command: 'cd ~/dev/centro-media-manager/' | |
}, | |
{ |
#!/usr/bin/env ruby | |
require 'active_support' | |
require 'active_support/core_ext' | |
require 'thor' | |
# Usage: | |
# ./slack-dark.rb | |
# ./slack-dark.rb [NEW_INDEX_FILE] | |
# |