Skip to content

Instantly share code, notes, and snippets.

View NiklasJordan's full-sized avatar
🛰️
Make satellite data accessible for everyone.

Niklas Jordan NiklasJordan

🛰️
Make satellite data accessible for everyone.
View GitHub Profile
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@bastianallgeier
bastianallgeier / kirby_loop.php
Created February 7, 2012 17:37
Loop (getkirby.com)
<?php snippet('header') ?>
<?php foreach($page->children()->flip() as $article): ?>
<?php if($article->template() == 'link'): ?>
<!-- link html -->
<?php elseif($article->template() == 'article'): ?>
<?php
// get the post UID from the URL
$uid = param('post');
if(!$uid) die(a::json(array(
'status' => 'error',
'msg' => 'The post could not be found',
)));
@somatonic
somatonic / from.php
Last active June 26, 2018 19:23
Create a page edit form on frontend using PW API and fields from the template of the page
<?php
// get a page
$editpage = $pages->get("/editme/");
$ignorefields = array("isOld","language_published");
$form = $modules->get("InputfieldForm");
$form->method = 'post';
$form->action = './';
@rizkysyazuli
rizkysyazuli / kirbycms-pagination.php
Created September 30, 2013 20:41
Kirby CMS Snippets: pagination with page numbers.
<? if ($articles->pagination()->hasPages()): ?>
<ul class="pagination">
<? if($articles->pagination()->hasNextPage()): ?>
<li><a class="prev" href="<?= $articles->pagination()->nextPageURL() ?>">Older posts</a></li>
<? endif; ?>
<? foreach($articles->pagination()->range(5) as $paging): ?>
<li><a href="<?= $articles->pagination()->pageURL($paging); ?>"><?= $paging; ?></a></li>
<? endforeach ?>
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
(*
http://zoesmith.io
Export Bookmarks from Evernote to Pinboard
v1.4 12th September 2012
This script takes selected notes in Evernote and sends an email for each to Pinboard, extracting each note's title, source URL and associated tags. The user should enter their Pinboard email address in the pinboardEmail property below, and can choose a default tag to add to each bookmark on import.
This code is hacky, horrible and non-error checking (but it worked for me). Don't use on thousands of notes at a time, it'll go all crashy. Try selecting one test note first to see if it works for you.
Change log:
@joyeusenoelle
joyeusenoelle / Mastodon.md
Last active September 3, 2024 17:59
An increasingly less-brief introduction to Mastodon
@pangyuteng
pangyuteng / Dockerfile
Last active September 25, 2024 16:52
docker miniconda ubuntu
#
# ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile
#
# miniconda vers: http://repo.continuum.io/miniconda
# sample variations:
# Miniconda3-latest-Linux-armv7l.sh
# Miniconda3-latest-Linux-x86_64.sh
# Miniconda3-py38_4.10.3-Linux-x86_64.sh
# Miniconda3-py37_4.10.3-Linux-x86_64.sh
#
@tatianamac
tatianamac / tatiana-mac-speaker-rider.md
Last active November 6, 2024 15:21
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.