Skip to content

Instantly share code, notes, and snippets.

View astider's full-sized avatar

Nontapat Piyamongkol astider

View GitHub Profile
// index
const posts = data.allGhostPost.edges
const host = location.origin // `bkkjs-example.web.app`
const match = new RegExp(`http://localhost:2368/content/images`, `g`)
const modPosts = posts.map(({ node }) => {
const modFeatureImg = node.feature_image ? node.feature_image.replace(match, `${host}/images`) : node.feature_image
const modAuthorImg = node.primary_author.profile_image ? node.primary_author.profile_image.replace(match, `${host}/images`) : node.primary_author.profile_image
// const modHTML = node.html.replace(match, `${host}/images`)
return {
node: {

Keybase proof

I hereby claim:

  • I am astider on github.
  • I am astider (https://keybase.io/astider) on keybase.
  • I have a public key ASC6ExMhyXZlt9dfoO4j_WfIlArC_9zVb6AROwcSoOoSZgo

To claim this, I am signing this object:

@astider
astider / Main.cpp
Created October 18, 2017 17:22
shelter question
#include <stdio.h>
#include <stdlib.h>
const int FLOOR = 10000
const int ROOMS = 10000
extern void solve(int house[FLOOR][ROOMS]);
int main(void) {