Skip to content

Instantly share code, notes, and snippets.

View kaidesu's full-sized avatar
🔭
Stargazing

Kai kaidesu

🔭
Stargazing
View GitHub Profile
@kaidesu
kaidesu / types.ghost
Created July 7, 2021 23:19
Ghost type system example
// Short assignment example
a := "hello"
// Type system assignment example
b : string = "world"
c : number = 123
d : list[string] = ["foo", "bar"]
e : map{string: list[number]} = {
"foo": [10, 20],
"bar": [30, 40],
@kaidesu
kaidesu / vue.html
Created July 15, 2018 00:32
Vue Redactor
<!DOCTYPE html>
<html>
<head>
<title>Redactor</title>
<meta charset="utf-8">
<link rel="stylesheet" href="/assets/redactor/redactor.min.css" />
</head>
<body>
[
{
"name": "Quote",
"handle": "quote",
"instructions": "",
"fields": [
{
"name": "Text",
"handle": "text",
"type": "wysiwyg",
@kaidesu
kaidesu / snippets.cson
Created July 10, 2017 22:33
Atom snippets file
'.text.html.vue':
'Vue Component':
'prefix': 'template'
'body': """
<template>
$1
</template>
<script>
export default {

Keybase proof

I hereby claim:

  • I am kaidesu on github.
  • I am caffeinated (https://keybase.io/caffeinated) on keybase.
  • I have a public key whose fingerprint is 43BA 26E0 890F AAE7 4894 268B 8C7E A859 26AD 75C5

To claim this, I am signing this object:

[{"name":"Bears","color":"Blue","position":{"x":177,"y":85},"modelclass":"Bear","increment":false,"timestamp":false,"softdelete":false,"column":[{"colid":"c217","name":"id","type":"increments","length":"0","order":0,"defaultvalue":"","enumvalue":""},{"colid":"c218","name":"name","type":"string","length":"200","order":1,"defaultvalue":"","enumvalue":""},{"colid":"c219","name":"danger_level","type":"string","length":"200","order":2,"defaultvalue":"","enumvalue":""}],"relation":[{"extramethods":"","foreignkeys":"","name":"fish","relatedmodel":"Fish","relationtype":"hasOne","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"trees","relatedmodel":"Trees","relationtype":"hasMany","usenamespace":""},{"extramethods":"","foreignkeys":"bear_id, picnic_id","name":"picnics","relatedmodel":"Picnics","relationtype":"belongsToMany","usenamespace":""}],"seeding":[]},{"name":"Fish","color":"Yellow","position":{"x":1071,"y":51},"modelclass":"Fish","increment":false,"timestamp":false,"softdelete":false,"column":[{"c
sudo su --
cd /src
wget http://www.libxl.com/download/libxl.tar.gz
tar -zxvf libxl.tar.gz
cd libxl-3.4.1.4
ln -s include_c include
ln -s libxl.so /usr/lib/libxl.so
wget https://github.com/iliaal/php_excel/archive/master.zip master.zip
@kaidesu
kaidesu / PostInstall.sh
Last active August 29, 2015 14:13
Post Install
#!/usr/bin/env bash
_success() {
echo -e "\e[1;32m$1\e[0m"
}
_error() {
echo -e "\e[1;41;37m$1\e[0m"
}
<?php
/*
* Calls the WaniKani API and generates a custom log compatible with gource.
*/
function curlcon($url)
{
$key = "";
$url = "https://www.wanikani.com/api/v1.2/user/$key/$url";
<div class="messages success">
<a href="#" class="close-message ui-link"></a>
<p>This is a success message!</p>
</div>