Skip to content

Instantly share code, notes, and snippets.

diff --git a/std/net.zig b/std/net.zig
index 3551499c..84cd662c 100644
--- a/std/net.zig
+++ b/std/net.zig
@@ -162,16 +162,14 @@ pub fn parseIpLiteral(buf: []const u8) -> %Address {
return error.InvalidIpLiteral;
}
-fn hexDigit(c: u8) -> u8 {
- // TODO use switch with range
diff --git a/std/net.zig b/std/net.zig
index 3551499c..84cd662c 100644
--- a/std/net.zig
+++ b/std/net.zig
@@ -162,16 +162,14 @@ pub fn parseIpLiteral(buf: []const u8) -> %Address {
return error.InvalidIpLiteral;
}
-fn hexDigit(c: u8) -> u8 {
- // TODO use switch with range
diff --git a/std/net.zig b/std/net.zig
index 3551499c..a16c27b7 100644
--- a/std/net.zig
+++ b/std/net.zig
@@ -163,16 +163,14 @@ pub fn parseIpLiteral(buf: []const u8) -> %Address {
}
fn hexDigit(c: u8) -> u8 {
- // TODO use switch with range
- if ('0' <= c and c <= '9') {
@jfo
jfo / foo.rs
Created November 8, 2017 09:40
fn thing(x:u8) -> u8 {
return match x {
3 => 1,
4 => 2,
_ => 5
}
}
fn main() {
println!("{}", thing(2));
? github.com/gohugoio/hugo [no test files]
ok github.com/gohugoio/hugo/bufferpool 0.018s
ok github.com/gohugoio/hugo/cache 0.016s
ok github.com/gohugoio/hugo/commands 0.046s
ok github.com/gohugoio/hugo/common/types 0.015s
? github.com/gohugoio/hugo/compare [no test files]
? github.com/gohugoio/hugo/config [no test files]
ok github.com/gohugoio/hugo/create 0.122s
? github.com/gohugoio/hugo/deps [no test files]
? github.com/gohugoio/hugo/docshelper [no test files]
diff --git a/hugolib/page.go b/hugolib/page.go
index 306d3373..2f7ebec8 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -1147,6 +1147,14 @@ func (p *Page) update(f interface{}) error {
}
p.Params["draft"] = p.Draft
+ if p.Date.IsZero() {
+ p.Date = p.PublishDate
diff --git a/src/components/Editor/Breakpoint.js b/src/components/Editor/Breakpoint.js
index e1f1afd1..4ab9ef59 100644
--- a/src/components/Editor/Breakpoint.js
+++ b/src/components/Editor/Breakpoint.js
@@ -38,6 +38,8 @@ class Breakpoint extends Component {
addBreakpoint() {
const { breakpoint, editor, selectedSource } = this.props;
+ // => hamster dance
+
diff --git a/src/components/SecondaryPanes/Frames/WhyPaused.css b/src/components/SecondaryPanes/Frames/WhyPaused.css
index b0fff009..c35a91d0 100644
--- a/src/components/SecondaryPanes/Frames/WhyPaused.css
+++ b/src/components/SecondaryPanes/Frames/WhyPaused.css
@@ -1,15 +1,28 @@
+@keyframes spin {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
diff --git a/src/components/SecondaryPanes/Frames/WhyPaused.css b/src/components/SecondaryPanes/Frames/WhyPaused.css
index c35a91d0..b0fff009 100644
--- a/src/components/SecondaryPanes/Frames/WhyPaused.css
+++ b/src/components/SecondaryPanes/Frames/WhyPaused.css
@@ -1,28 +1,15 @@
-@keyframes spin {
- from {
- transform: rotate(0deg);
- }
- to {
commit d36d9b2220ee3183e05694ace72761eb361ebdbc
Author: Jeff Fowler <jeffowler@gmail.com>
Date: Thu Oct 5 15:54:03 2017 +0200
bullshit
diff --git a/src/components/SecondaryPanes/Frames/WhyPaused.css b/src/components/SecondaryPanes/Frames/WhyPaused.css
index b0fff009..c35a91d0 100644
--- a/src/components/SecondaryPanes/Frames/WhyPaused.css
+++ b/src/components/SecondaryPanes/Frames/WhyPaused.css