View ga.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hello, hope you find this code useful | |
package main | |
import ( | |
// this is a deprecated oauth lib from godoc.org | |
// i was going to use the new one (https://godoc.org/golang.org/x/oauth2/google) | |
// but due to a bug i've found and filed at github | |
// i decided to revert to the old one instead until the new one is stable | |
"code.google.com/p/goauth2/oauth/jwt" | |
"encoding/json" |
View gist:c977f0187d1ffb6daa31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates Job Positions Custom Post Type | |
function job_positions_init() { | |
$args = array( | |
'label' => 'Job Positions', | |
'public' => true, | |
'show_ui' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'rewrite' => array('slug' => 'job-positions'), | |
'query_var' => true, |
View 01 FreeCodeCamp - Bonfire: Basic Algorithm Scripting.markdown
Basic Algorithm Scripting
FreeCodeCamp - Bonfire series
My FreeCodeCamp profile [http://freecodecamp.com/rlynjb]
- [Bonfire: Reverse a String] (#file-reverse-a-string-js)
- [Bonfire: Factorialize a Number] (#file-factorialize-a-number-js)
- [Bonfire: Check for Palindromes] (#file-check-for-palindromes-js)
- [Bonfire: Find the Longest Word in a String] (#file-find-the-longest-word-in-a-string-js)
View 01 FreeCodeCamp - Bonfire: Intermediate Algorithm Scripting.markdown
Intermedate Algorithm Scripting
FreeCodeCamp - Bonfire series
My FreeCodeCamp profile [http://freecodecamp.com/rlynjb]
- [Bonfire: Sum All Numbers in a Range] (#file-sum-all-numbers-in-a-range-js)
- [Bonfire: Diff Two Arrays] (#file-diff-two-arrays-js)
- [Bonfire: Roman Numeral Converter] (#file-roman-numeral-converter-js)
- [Bonfire: Where art thou] (#file-where-art-thou-js)
View intercept php form submittion via ajax.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ref: http://stackoverflow.com/questions/12188847/intercept-form-post-string-and-send-via-ajax-instead | |
*/ | |
how ajax and php forms work: | |
- http://code.tutsplus.com/tutorials/submit-a-form-without-page-refresh-using-jquery--net-59 | |
follow tutorial on getgrav frontend forms: | |
- https://learn.getgrav.org/forms/forms |