I hereby claim:
- I am hashnuke on github.
- I am hashnuke (https://keybase.io/hashnuke) on keybase.
- I have a public key ASCYpt4PklMYqN6rB6wy0mf9_rBfUepaKcY3u8GYNeb1QQo
To claim this, I am signing this object:
# to undo a git push | |
git push -f origin HEAD^:master | |
# to get to previous commit (preserves working tree) | |
git reset --soft HEAD | |
# to get back to previous commit (you'll lose working tree) | |
git reset --hard HEAD^ |
import AppKit | |
import SwiftUI | |
// Delete this line if not using a playground | |
import PlaygroundSupport | |
struct ContentView: View { | |
var body: some View { | |
// if spacing is not set to zero, there will be a gap after the first row |
import Combine | |
import Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
var publisher = PassthroughSubject<Int, Error>() | |
let cancellable = publisher | |
.flatMap { Just($0).setFailureType(to: Error.self) } | |
.handleEvents( |
I hereby claim:
To claim this, I am signing this object:
# I'm using Riak v2.0pre7 (latest tagged release from the github repo) | |
$ cat etc/advanced.config | |
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%% ex: ft=erlang ts=4 sw=4 et | |
[ | |
{riak_kv, [ | |
{add_paths, ["/Users/akashmanohar/projects/rinket/_build/shared/lib/firebrick/ebin"]} | |
]} | |
] |
# My markup looks like this | |
# | |
# <div class="activities"> | |
# <div class="activities-inner-wrapper"> | |
# <div class="activity">something here</div> | |
# <div class="activity">another thing here</div> | |
# <div class="activity">Wowowowowwo</div> | |
# </div> | |
# </div> | |
# |
These are notes for using the "Salt in 60 seconds" tutorial with DigitalOcean - http://www.saltstat.es/posts/quickstart.html
After creating a droplet via their web interface, login with you IP address and the password that is emailed to you.
export IP=your-ip
ssh root@$IP
Install saltstack
curl -L http://bootstrap.saltstack.org | sudo sh -s -- -M stable
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) | |
;; under mac, have Command as Meta and keep Option for localized input | |
(when (string-match "apple-darwin" system-configuration) | |
(setq mac-allow-anti-aliasing t) | |
(setq mac-command-modifier 'meta) |
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
you did, the {internet|net|web} will be {much more|a lot more} | |
useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
Thanks.| |
updateSize: function(width, height){ | |
// get current center | |
var centerX = this.pos.x + this.size.x/2, | |
centerY = this.pos.y + this.size.y/2; | |
// set new width / height | |
this.size.x = width; | |
this.size.y = height; | |