Skip to content

Instantly share code, notes, and snippets.

@jfo
jfo / foo.diff
Created October 18, 2019 11:55
commit cb1d8f6be35aa0eca9534a979aa1f1f09641f760
Author: Jakob Nielsen <anotherdatalab@gmail.com>
Date: Fri Oct 18 12:26:32 2019 +0200
Update diversity inclusion questions (#41)
* Update diversity inclusion questions
* release 5.5.1-rc.1 [ci skip]
#include <stdio.h>
void lib1f(void (*f)()) {
printf("lib1 now calling function:\n");
f();
printf("lib1 done!\n");
}
void lib2f(void (*f)()) {
printf("lib2 now calling function:\n");
#!/usr/bin/env bash
for dir in */; do
if [ -d $dir/.git ]; then
(
cd $dir;
git log --author=fowler --pretty=format:%ad --date=short;
);
echo;
fi
@jfo
jfo / -
Created May 15, 2018 14:59
commit dc2edeac8812e9e5d2de94abfcc1b3bbc9e4b2e9
Author: Jeff Fowler <jeff.fowler@peakon.com>
Date: Tue May 15 16:59:15 2018 +0200
gradient example;
diff --git a/src/components/Card/index.js b/src/components/Card/index.js
index 6f5e880..be6e3e6 100644
--- a/src/components/Card/index.js
+++ b/src/components/Card/index.js
commit c2355e5696d10b7294b0cb2105022543c2c121fe
Author: Jeff Fowler <jeffowler@gmail.com>
Date: Sun Feb 18 15:36:17 2018 +0100
xml dep
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c23c0b6e..73b26578 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
DELETE
FROM score_employees;
INSERT INTO score_employees ( "employeeId", "questionId", "closesAt", TYPE, "companyId", "segmentIds", SCALE, "answeredAt")
( SELECT "employeeId",
"questionId",
"closesAt",
TYPE,
"companyId",
@jfo
jfo / foo.diff
Created February 25, 2018 17:11
diff --git a/std/os/darwin.zig b/std/os/darwin.zig
index ebc6f65f..ca4746d8 100644
--- a/std/os/darwin.zig
+++ b/std/os/darwin.zig
@@ -55,6 +55,7 @@ pub const O_NOFOLLOW = 0x0100; /// do not follow symlinks
pub const O_SYMLINK = 0x200000; /// allow open of symlinks
pub const O_EVTONLY = 0x8000; /// descriptor requested for event notifications only
pub const O_CLOEXEC = 0x1000000; /// mark as close-on-exec
+pub const O_DIRECTORY = 0x100000; /// only open directory
@jfo
jfo / foo.diff
Created February 22, 2018 15:20
diff --git a/apps/config/paths.js b/apps/config/paths.js
index db9fe9df7..d57b87533 100644
--- a/apps/config/paths.js
+++ b/apps/config/paths.js
@@ -1,4 +1,5 @@
const path = require('path');
+const fs = require('fs');
module.exports = {
app: path.resolve(__dirname, '..', 'src', 'index.js'),
@jfo
jfo / wat.md
Last active August 16, 2018 03:59
hoppetosse: I reread the gist, the only big thing I've left out is what I thought it was... you have to 1) build llvm from http://prereleases.llvm.org/6.0.0/ adding the DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly to CMake
then build zig where -DCMAKE_PREFIX_PATH is set to the install directory of that llvm
off of the llvm6 branch
and from there I think the gist is accurate

so many hoops to jump through but it works

looks like this:

@jfo
jfo / foo.diff
Created February 17, 2018 09:49
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c23c0b6e..73b26578 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -693,6 +693,7 @@ target_link_libraries(zig LINK_PUBLIC
${CLANG_LIBRARIES}
${LLD_LIBRARIES}
${LLVM_LIBRARIES}
+ xml2
${CMAKE_THREAD_LIBS_INIT}