Skip to content

Instantly share code, notes, and snippets.

View ozmos's full-sized avatar

Osamu Morozumi ozmos

View GitHub Profile
@ocean90
ocean90 / box-shadow.html
Last active April 1, 2025 12:13
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@pamelafox
pamelafox / countries_and_territories.sql
Last active April 13, 2025 10:45
countries_and_territories.sql
/*
Countries and dependent territories, 2020
Data adapted from
http://www.worldometers.info/world-population/population-by-country/
Does not include rows which had "N.A." values, so some territories are missing.
*/
CREATE TABLE countries(
name TEXT PRIMARY KEY,
population INTEGER,
@autorunman22
autorunman22 / webpack.mix.js
Last active March 25, 2022 02:49
Laravel common mix setup for vue.js + pug.js
const mix = require('laravel-mix');
mix.webpackConfig({
module: {
rules: [
{
test: /\.pug$/,
loader: 'pug-plain-loader'
}
]
@MichaelCurrin
MichaelCurrin / README.md
Last active March 28, 2025 00:35
Jekyll - how to build a REST API

Jekyll - how to build a REST API

Serve your data as static JSON

How to make a read-only JSON REST API using Jekyll.

This doesn't need any Ruby plugins - you just use some built-in templating features in Jekyll 3 or 4.

You will end up with a single JSON file contains data for all pages on the site, and another JSON file of just posts. Alternatively, you can replace every HTML page and post with a JSON version.