Skip to content

Instantly share code, notes, and snippets.

View kaidesu's full-sized avatar
🔭
Stargazing

Kai kaidesu

🔭
Stargazing
View GitHub Profile
@kaidesu
kaidesu / index.html
Created August 6, 2013 23:21 — forked from anonymous/index.html
Android Phone CSS
<div class="nexus">
<div class="speaker"></div>
<div class="screen">
<div class="phone-infos">
<span>03.15</span>
<span class="battery"></span>
<span class="gsm">
<b class="signal1"></b>
<b class="signal2"></b>
<b class="signal3"></b>
@kaidesu
kaidesu / gist:9819416
Created March 27, 2014 21:29
PHP/MySQL User's Online Script
CREATE TABLE `user_online` (
`session` char(100) NOT NULL default '',
`time` int(11) NOT NULL default '0'
) TYPE=MyISAM;
<div class="messages success">
<a href="#" class="close-message ui-link"></a>
<p>This is a success message!</p>
</div>
<?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";
@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"
}
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
[{"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

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:

@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 {
[
{
"name": "Quote",
"handle": "quote",
"instructions": "",
"fields": [
{
"name": "Text",
"handle": "text",
"type": "wysiwyg",