start new:
tmux
start new with session name:
tmux new -s myname
Code | |
$("button").single_double_click(function () { | |
alert("Try double-clicking me!") | |
}, function () { | |
alert("Double click detected, I'm hiding") | |
$(this).hide() | |
}) | |
Use the xrandr command: | |
xrandr -o normal|inverted|left|right | |
If you want permanent changes, use this option in the "Monitor" section of | |
/etc/X11/xorg.conf: | |
Option "Rotate" "right" |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
--- | |
layout: none | |
--- | |
{"items":[ | |
{% for post in site.posts %}{"title":"{{ post.title }}", | |
"url":"{{ post.url }}", | |
"date":"{{ post.date | date_to_string }}", | |
"body":"{{ post.content | strip_html | xml_escape | strip_newlines }}"}{% unless forloop.last %},{% endunless %}{% endfor %} | |
]} |
<?php | |
class config { | |
// For PHPMailer Class for sending email from forms and error reports | |
const defaultEmail = ''; | |
const defaultFrom = ''; | |
const notifyEmail = ''; | |
const notifyName = ''; | |
// For database connection scheme |
angular.module('app', []) | |
.filter('truncate', function () { | |
return function (text, length, end) { | |
if (isNaN(length)) { | |
length = 10; | |
} | |
if (end === undefined) { | |
end = '...'; |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |