Skip to content

Instantly share code, notes, and snippets.

vjeantet / expander.html
Last active May 22, 2019
html simple text panel expander
View expander.html
<!DOCTYPE html>
<style type="text/css">
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 14px;
font-weight: 400;
vjeantet / jira_oauth.go
Created Mar 11, 2017 — forked from Lupus/jira_oauth.go
Example of using OAuth authentication with JIRA in Go
View jira_oauth.go
package main
import (
View gist:bbbbb39ca7ca4b48d4ff54d73cf2a667
Example of making a request to JIRA as a trusted application.
In this example, we create a new issue as an arbitrary user.
More information on this technique at:
import oauth2
import time
View gist:3fcaaac2a20b04a58843
### Keybase proof
I hereby claim:
* I am vjeantet on github.
* I am vjeantet ( on keybase.
* I have a public key whose fingerprint is CB5F 69BD 3CDD 2EE5 DEBC 06A6 BB90 9927 9BF3 AC6D
To claim this, I am signing this object:
vjeantet / Ghost_to_HUGO_blog.php
Last active Jun 19, 2016
Use this php script to convert a Ghost export json file to Hugo content file. Files will be created in a "output" folder, to reuse images place the ghost content folder into the hugo's static folder
View Ghost_to_HUGO_blog.php
$ghost_data = json_decode(file_get_contents("./GhostData.json"),true) ;
foreach ($ghost_data['data']['posts'] as $key => $value) {
$created_at = date("c",$value["created_at"]/1000);
$title = str_replace('\\','\\\\',$value["title"]) ;
$title = str_replace('"','\"',$title) ;
View iBeaconHomeKitchen.go
package main
import (
func main() {
b, err := beacon.NewBeacon("87DD5976-9E6B-4EFF-A88F-17FF3BEF774D", 1, 1) // uuid, major, minor
vjeantet / Named-Type-problem.go
Last active Aug 29, 2015
Named Type problem
View Named-Type-problem.go
package main
import (
type counter int
func main() {
var c counter