Skip to content

Instantly share code, notes, and snippets.

View ozmos's full-sized avatar

Osamu ozmos

View GitHub Profile
@ocean90
ocean90 / box-shadow.html
Last active January 30, 2026 20:04
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 May 14, 2026 01:03
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 July 24, 2025 13:28
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.

@aaronbushnell
aaronbushnell / AssetImport.php
Last active December 14, 2025 19:36
A helper class to create Statamic assets out of URLs. Uses intervention/image for compression and resizing
<?php
namespace App\Helpers;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Storage;
use Intervention\Image\ImageManagerStatic as Image;
use Statamic\Contracts\Assets\AssetContainer;
use Statamic\Facades\Asset;