Skip to content

Instantly share code, notes, and snippets.

@duongns
duongns / post-process.php
Created October 30, 2012 16:10 — forked from viruthagiri/post-process.php
WordPress Custom Post Type: Insert post via Frontend
<?php
/**
* post-process.php
* make sure to include post-process.php in your functions.php. Use this in functions.php:
*
* get_template_part('post-process');
*
*/
function do_insert() {
if( 'POST' == $_SERVER['REQUEST_METHOD']
@duongns
duongns / Bolt-Alice.kbd.json
Last active January 18, 2022 07:59
Bolt Alice
[{x:0.25},"Esc",{x:0.25},"Q",{x:12},"P",{x:0.25,w:1.75},"BS"],
[{y:0.25,x:0.25},"Tab",{x:0.4},"A",{x:12.1},":\n;",{x:0.25,w:1.75},"'"],
[{y:0.25,w:1.75},"Control",{x:0.4},"Z",{x:11.2},"?\n/",{x:0.25},"UP",{x:0.25},"Fn"],
[{y:0.25,w:1.25},"Shift",{x:0.5},"Win",{x:11.6},"LEFT",{x:0.25},"DOWN",{x:0.25},"RIGHT"],
[{r:5,rx:2.75,x:0.25},"W",{x:0.25},"E",{x:0.25},"R",{x:0.25},"T"],
[{y:0.25,x:0.5},"S",{x:0.25},"D",{x:0.25},"F",{x:0.25},"G"],
[{y:0.25,x:1},"X",{x:0.25},"C",{x:0.25},"V",{x:0.25},"B"],
[{y:0.25,x:1.75},"Alt",{x:0.25,a:7,w:2.75},""],
[{r:-5,y:-3.75,x:6.5,a:4},"Y",{x:0.25},"U",{x:0.25},"I",{x:0.25},"O"],
[{y:0.25,x:6.75},"H",{x:0.25},"J",{x:0.25},"K",{x:0.25},"L"],