I hereby claim:
- I am greghaskins on github.
- I am greghaskins (https://keybase.io/greghaskins) on keybase.
- I have a public key whose fingerprint is 4329 89C3 6CDF 6718 BC11 ECA5 AA62 945D 5436 43DD
To claim this, I am signing this object:
You can trigger a GitHub Pages (Jekyll) rebuild with a single API call. This is pretty useful for auto-publishing blog posts from a bot like Zapier in conjunction with future: false
in your Jekyll config.yml
. Just future-date your posts, and they'll go live when that date rolls around. I use a version of this setup for my blog at greghaskins.com.
-
Create a GitHub personal access token and save it somewhere. It needs to have the
repo
access scope (at least). -
Create a file at the root of your repo (e.g.
.publish
) with some dummy content.$ echo ".publish" > .publish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fizzbuzz <- function(){ | |
input <- seq(1, 100) | |
result <- input | |
result[input %% 3 == 0] <- "Fizz" | |
result[input %% 5 == 0] <- "Buzz" | |
result[input %% 15 == 0] <- "FizzBuzz" | |
result | |
} | |
fizzbuzz() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are some useful tips for programming in Ruby | |
# (Things in ALL_CAPS will be written by you) | |
# Comments begin with a "#" like this | |
# A test method | |
def test_SOMETHING | |
assert_equal EXPECTED_VALUE, ACTUAL_VALUE | |
end |