Discover gists
<div class="bg-white mb3 pa2 gray overflow-hidden" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> | |
<h1 class="f3 near-black"> | |
<a href="{{ .RelPermalink }}" class="link black dim"> | |
{{ .Title }} <small class="f6 ml2">vom {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}</small> | |
</a> | |
</h1> | |
<div class="nested-links f5 lh-copy nested-copy-line-height"> | |
{{ .Summary }} | |
</div> | |
</div> |
When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.
This is enabled by adding the
ForwardAgent yes
option to any of your Host
entries in ~/.ssh/config
(or alternatively with the -A
option). Don't set this option in a wildcard Host *
section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.
# On the parent, e.g. ColorRect | |
# This gives this CanvasItem a "clipping mask" that only allows children to display within it's rect. | |
func _draw(): | |
VisualServer.canvas_item_set_clip(get_canvas_item(), true) | |
# On the child (Label) | |
export (float) var scroll_speed = 60 | |
func _process(delta): | |
rect_position.x -= scroll_speed * delta |
<?php | |
// Autoload Url and Link classes. | |
use Drupal\Core\Url; | |
use Drupal\Core\Link; | |
/** | |
* External link | |
*/ | |
$url = Url::fromUri('https://colorfield.be'); |
import SwiftUI | |
struct KeyframeValues { | |
var scale = 1.0 | |
var horizontalStretch = 1.0 | |
var verticalStretch = 1.0 | |
var translation = 0.0 | |
var rotation = Angle.zero | |
} |
# Basic key operators to query the JSON objects : | |
# #> : Get the JSON object at that path (if you need to do something fancy) | |
# -> : Get the JSON object at that path (if you don't) | |
# ->> : Get the JSON object at that path as text | |
# {obj, n} : Get the nth item in that object | |
# https://www.postgresql.org/docs/9.4/functions-json.html#FUNCTIONS-JSONB-OP-TABLE | |
# Date | |
# date before today |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
Note: a lot of programmers talk about UI without mentionning the user even once, as if it was entirely a programming problem. I wonder what we’re leaving off the table when we do that.
- https://gist.github.com/vurtun/65977fcff17e413721dbd1191cda719d Vurtun’s notes about UI
- https://gist.github.com/vurtun/61b6dbf21ef060bcbbd8d1faa88350d9 Vurtun’s experiments
- https://gist.github.com/vurtun/9782db089430167453cff6785b37bb46 other notes by Vurtun
- https://gist.github.com/pervognsen/279156b894c5d04ca73df7afc12a37ee Notes about slate by Per Vognsen
- https://docs.unrealengine.com/latest/INT/Programming/Slate/
- https://docs.unrealengine.com/latest/INT/Engine/UMG/index.html
- https://soundcloud.com/podcastcode/6-dont-make-me-write-ui