Example-URL: http://instagram.com/p/hqo3mUjCAx
{% instagram hqo3mUjCAx %}
# | |
# This is the way I configured my ruby environment on ArchLinux. | |
# | |
# I don't like the overhead of rvm, so I use chruby to switch between ruby versions. | |
# So first you need to install chruby from source: | |
# | |
# https://github.com/postmodern/chruby#install | |
# | |
# To build ruby from source I use ruby-build, so after chruby we install ruby-build: | |
# |
// TP-Link Kasa Dashboard | |
// based on https://grafana.com/grafana/dashboards/10957, but slightly modified | |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, |
Example-URL: http://instagram.com/p/hqo3mUjCAx
{% instagram hqo3mUjCAx %}
package main | |
import ( | |
"fmt" | |
"github.com/huin/goupnp" | |
"github.com/huin/goupnp/soap" | |
) | |
func main() { | |
devices, err := goupnp.DiscoverDevices("urn:Belkin:device:controllee") |
.Avatar, .avatar, | |
.DashboardProfileCard-avatarImage, | |
.DashboardProfileCard-avatarLink, | |
.MomentUserByline-avatar, | |
.ProfileAvatar, | |
.ProfileAvatar-image, | |
.ProfileAvatar-placeholderImage, | |
.ProfileAvatarEditing, | |
.ProfileAvatarEditing-button, | |
.ProfileAvatarEditing-overlay, |
- (BOOL) textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string | |
{ | |
NSCharacterSet *nonNumberSet = [[NSCharacterSet characterSetWithCharactersInString:@"0123456789."] invertedSet]; | |
BOOL result = NO; | |
if([string length] == 0){ //backspace | |
result = YES; | |
} | |
else{ |
package main | |
import ( | |
"fmt" | |
"net" | |
"net/http" | |
// "os" | |
) | |
func main() { |
task :deploy do | |
sh "rsync -rt _site #{USER}@#{SERVER}:~/blog" | |
end |
# Parts of this config is borrowed from | |
# https://gist.github.com/lmullen/4736568 | |
# GLOBAL CONFIGURATIONS | |
# ------------------------------------------------------------------- | |
# See https://github.com/jigish/slate/wiki/Global-Configs | |
config defaultToCurrentScreen true | |
config secondsBeforeRepeat 0.4 | |
config secondsBetweenRepeat 0.1 |
/** | |
* Pretty CSS "Stiched" look | |
* inspired by http://css-tricks.com/snippets/css/stitched-look/ | |
*/ | |
body { | |
margin: 0; | |
} | |
.text { |