A Pen by Jonathan Hudak on CodePen.
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
/// <reference path="https://deno.land/x/deploy@0.2.0/types/deploy.ns.d.ts" /> | |
/// <reference path="https://deno.land/x/deploy@0.2.0/types/deploy.fetchevent.d.ts" /> | |
/// <reference path="https://deno.land/x/deploy@0.2.0/types/deploy.window.d.ts" /> | |
/* | |
Reference | |
* https://strapi.io/blog/rendering-react-ssr-with-deno-and-deno-deploy | |
*/ | |
import * as React from "https://esm.sh/react@17.0.2"; |
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
import { Application } from 'https://deno.land/x/oak/mod.ts' | |
import { Router }from 'https://deno.land/x/oak/mod.ts' | |
/* | |
Sources: | |
- https://dev.to/am77/deno-v1-0-303j | |
*/ |
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
import { Application } from 'https://deno.land/x/oak/mod.ts' | |
import router from './routes.ts' | |
const HOST = '127.0.0.1' | |
const PORT = 7700 | |
const router = new Router() | |
router.get('/books', getBooks) |
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
#!/bin/bash | |
# Install Docker! | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 |
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
.FloorPlan | |
.FloorPlan-nav | |
div: a.FloorPlan-navButton.active(href="#mainHall") | |
span.number 1. | |
span Main Hall | |
div: a.FloorPlan-navButton(href="#diningHall") | |
span.number 2. | |
span Dining Hall | |
div | |
span.number 3. |
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
doskey branch=git rev-parse --abbrev-ref HEAD ^| clip |
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
#!/bin/sh | |
mysqldumpdb() { | |
if [ -z "$1" ] | |
then | |
echo "Specify mysql database name as parameter #1" | |
else | |
now=$(date +"%s") | |
cmd="mysqldump -uroot -proot $1 | gzip > /Users/jonathan/Desktop/$1-$now.sql.gz" | |
echo $cmd | |
eval $cmd |
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
<h1>Editing {{.Slug}}</h1> | |
<form action="/save/{{.Slug}}" method="POST"> | |
<div><textarea name="body" rows="20" cols="80">{{printf "%s" .Body}}</textarea></div> | |
<div><input type="submit" value="Save"></div> | |
</form> |
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
<a class="share-icon share-icon-email pop" href="mailto:?subject=<?php echo urlencode(the_title()); ?>&body=<?php the_permalink(); ?>" title="Send a link to this post via email" rel="nofollow">Share this post via email</a> | |
<a class="share-icon share-icon-facebook pop" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo get_permalink(); ?>&t=<?php echo get_the_title(); ?>" target="_blank" title="Share This on Facebook">fb</a> | |
<a class="share-icon share-icon-twitter pop" href="http://twitter.com/share?text=<?php echo urlencode(the_title()); ?>&url=<?php echo urlencode(the_permalink()); ?>&via=twitter" title="Share on Twitter" rel="nofollow" target="_blank">Tweet This</a> | |
<a class="share-icon share-icon-tumblr pop" href="http://www.tumblr.com/share/link?url=<?php echo urlencode(get_permalink()) ?>&name=<?php echo urlencode(get_the_title()) ?>&description=<?php echo urlencode(the_excerpt()) ?>" target="_blank" title="Share on Tumblr">Share on Tumblr</a> |