Skip to content

Instantly share code, notes, and snippets.

View Largo's full-sized avatar
💭
💎 Ruby Kaigi 2024 was really cool 💎

Andi Idogawa Largo

💭
💎 Ruby Kaigi 2024 was really cool 💎
View GitHub Profile
@Largo
Largo / index.html
Created January 22, 2016 14:58 — forked from anonymous/index.html
Editor // source http://jsbin.com/yinuyu
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>Editor</title>
<style id="jsbin-css">
* { box-sizing: border-box }
@Largo
Largo / gist:d7371d4ba8c8846fdc38
Last active August 29, 2015 14:22
No warranties. This is very beta extension for implementing the drag and drop order function in bolt. you need a taxonomy "sortierung" and shouldn't have any other taxonomies, because it might not work
<?php
namespace Bolt\Extension\Largo\SortOrder;
use Symfony\Component\HttpFoundation\Response;
use Bolt;
class Extension extends \Bolt\BaseExtension
{
/** @var boolean */
private $isAdmin;
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>Editor</title>
<style id="jsbin-css">
* { box-sizing: border-box }
@Largo
Largo / idleLogger.rb
Last active August 29, 2015 14:00
Log the Idle Time of the current user in Windows. Similar to query user
require "Win32API"
require 'Date'
require 'etc'
api = Win32API.new( 'user32', 'GetLastInputInfo', ['P'], 'I')
# match the structure LASTINPUTINFO. First 4 byte int is size of struct
s = [8, 0].pack('l*')
t = Win32API.new("kernel32", "GetTickCount", nil, 'L')
html, body{
height: 100%;
}
#clock {
font-size: 50px;
/* font-family: 'Helvetica, Arial';
color: #3e3e3e; */
}