Skip to content

Instantly share code, notes, and snippets.

View daftspunk's full-sized avatar

daft daftspunk

View GitHub Profile
@daftspunk
daftspunk / full-calendar-hot.js
Last active October 20, 2023 22:43 — forked from mplodowski/full-calendar-hot.js
Full calendar Hot Control
<script>
oc.registerControl('full-calendar', class extends oc.ControlBase {
connect() {
this.calendar = new FullCalendar.Calendar(this.element, {
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: null,
},
initialView: window.innerWidth < 1000 ? 'listWeek' : 'dayGridMonth',
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Not Found</title>
<style>
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a{background-color:transparent}code{font-family:monospace,monospace;font-size:1em}[hidden]{display:none}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}a{color:inherit;text-decoration:inherit}code{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.bg-white{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-g
@daftspunk
daftspunk / HdWallet.php
Created April 14, 2018 02:27
PHP library for generating addresses from an XPUB
<?php
use BitWasp\Bitcoin\Bitcoin;
use BitWasp\Bitcoin\Key\Deterministic\HierarchicalKeyFactory;
use BitWasp\Bitcoin\Key\Deterministic\HierarchicalKeySequence;
use BitWasp\Bitcoin\Key\Deterministic\MultisigHD;
use BitWasp\Bitcoin\Network\NetworkFactory;
use Exception;
/*
@daftspunk
daftspunk / ajax-file-upload.htm
Created July 29, 2017 07:52
Sample AJAX file upload via October CMS
title = "AJAX File Upload"
url = "/test"
layout = "default"
is_hidden = 0
==
<?php
use System\Models\File;
function onSubmit()
{
@daftspunk
daftspunk / acme_demo_models_Movie.php
Last active September 21, 2019 05:26
Example filter engine in October
// ...
class Movie extends Model
{
// ...
/**
* The attributes on which the post list can be ordered
* @var array
*/
@daftspunk
daftspunk / KatsuChicken.md
Last active November 3, 2021 02:34
Recipe: Katsu chicken with Japchae noodles

Katsu chicken with Japchae noodles

Japanese + Korean = <3

Serves: 4

Katsu Chicken

  • 4 Chicken fillets
  • 2 eggs
# ===================================
# Workflow Definitions
# ===================================
workflow:
name: Invoice status
startStep: draft
steps:
draft:
Web & Software Development:
- .NET
- AJAX
- AMQP
- ASP
- ASP.NET
- Active Directory
- Adobe Air
- Agile Development
- Alibaba
@daftspunk
daftspunk / screencast-introduction
Created December 19, 2014 03:17
Introduction to October
WEBVTT
00:00:00.000 --> 00:00:04.727
(whooshing sound)
00:00:04.727 --> 00:00:06.287
Hello
00:00:06.287 --> 00:00:09.200
and welcome to this introduction to October
@daftspunk
daftspunk / DynamicModel.php
Created November 7, 2014 01:23
Dynamic OctoberCMS model
<?php namespace Acme\Blog\Models;
use Model;
/**
* DynamicModel Model
*/
class DynamicModel extends Model
{