Skip to content

Instantly share code, notes, and snippets.

View bronze's full-sized avatar
😎

Carlos Bronze bronze

😎
View GitHub Profile
@piratus
piratus / pirata.cfg
Created February 5, 2016 16:32
My Quake 2 config file
//* 30.12.2005 *//
unbindall
//Settings
bind mwheelup ""
bind mwheeldown ""
clear
//* personal
set zoom_fov 65
@myinon
myinon / Load more
Last active May 9, 2017 19:18
This bookmarklet will continuously press the "Load more" button on a user's YouTube channel until all of the videos have been loaded. The fireEvent function was copied from here: https://stackoverflow.com/a/2381862
javascript:void((function(){function%20fireEvent(node,eventName){var%20doc;if(node.ownerDocument){doc=node.ownerDocument;}else%20if(node.nodeType===9){doc=node;}else{throw%20new%20Error("Invalid%20node%20passed%20to%20fireEvent:%20"+node.id);}if(node.dispatchEvent){var%20eventClass="";switch(eventName){case%20"click":%20case%20"mousedown":%20case%20"mouseup":%20eventClass="MouseEvents";break;case%20"focus":%20case%20"change":%20case%20"blur":%20case%20"select":%20eventClass="HTMLEvents";break;default:%20throw%20"fireEvent:%20Couldn't%20find%20an%20event%20class%20for%20event%20'"+eventName+"'.";break;}var%20event=doc.createEvent(eventClass);var%20bubbles=eventName==="change"?false:true;event.initEvent(eventName,bubbles,true);event.synthetic=true;node.dispatchEvent(event,true);}else%20if(node.fireEvent){var%20event=doc.createEventObject();event.synthetic=true;node.fireEvent("on"+eventName,event);}};var%20intv;function%20loadMore(){var%20btn=document.querySelector('.browse-items-load-more-button');if(btn!==null
<?php
/**
* This is a preview for an upcoming Kirby feature.
*
* This class extends all pages with the template
* project.php and makes it possible to add custom features
* and methods to the $page object, which can then be
* used everywhere throughout Kirby.
*
@bastianallgeier
bastianallgeier / controllers--contact.php
Created October 1, 2014 19:36
Plain contactform example for Kirby 2
<?php
return function($site, $pages, $page) {
$alert = null;
if(get('submit')) {
$data = array(
'name' => get('name'),
@nocturnalgeek
nocturnalgeek / MailinatorAliases
Last active June 18, 2025 22:06
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@bastianallgeier
bastianallgeier / statify.php
Last active October 4, 2022 17:12
A first draft for a script, which converts a Kirby site into a static site. It's a rough first draft, so don't expect it to be perfect. Play with it, if you like it!
<?php
/**
* Instructions:
*
* 1. Put this into the document root of your Kirby site
* 2. Make sure to setup the base url for your site correctly
* 3. Run this script with `php statify.php` or open it in your browser
* 4. Upload all files and folders from static to your server
* 5. Test your site
@texnixe
texnixe / longpost.php
Last active February 24, 2017 19:07
Template for [Kirby CMS](http://getkirby.com) that splits long post into several pages where the content file has a <!--pagebreak--> tag. Adds pagination ( prev numbers next). Put <!--pagebreak--> tag into your content file where you want to split the post.
<?php
// store the content of the kirbytext text variable in $text
$text = kirbytext($page->text());
// split the content of $text whenever a <!--pagebreak--> code is encountered and store in the array $pages
$pages = explode('<!--pagebreak-->', $text);
// count the number of pages in the array
$pageCount = count ($pages);
@dstorey
dstorey / dabblet.css
Created July 3, 2012 06:53
set the size of the boxes and any decoration
.slider {
/* set initial width */
width: 520px;
/* hide the content that overflows (to allow second box to show through) */
overflow: hidden;
display: inline-block;
/* skew container so that it has angled edge, and set up transition */
transform: skewX(-20deg);
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';