Skip to content

Instantly share code, notes, and snippets.

[source, python]
----
include::test.py[lines=4..5]
----
@xmeta
xmeta / Dockerfile
Last active May 23, 2016 11:27
xmeta/ruby:2.2.2
FROM ubuntu:15.10
MAINTAINER xmeta "https://github.com/xmeta"
# Update aptitude with new repo
RUN apt-get update
RUN apt-get install -qq -y make g++
#RUN apt-get install -y qt5-default libqt5webkit5-dev
# Install packages for building ruby
@xmeta
xmeta / main.adoc
Last active August 29, 2015 14:23
Nubits
@xmeta
xmeta / designer.html
Last active November 24, 2015 14:11
designer
<link rel="import" href="../../salesforce/s1-elements/s1AnchorDark.html">
<link rel="import" href="../../salesforce/s1-elements/s1AnchorLightLabelonBottom.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@xmeta
xmeta / main.adoc
Created January 25, 2016 09:14
AsciiDocで書くWIKIの作成方法
\curl -L https://get.rvm.io | bash -s stable --ruby
rvm gemset create gollum
rvm use 1.9.3@gollum
mkdir -p ~/tmp/gollum
cd ~/tmp/gollum
git init .
gem install gollum
module Main exposing (..)
import Html exposing (text)
import String
import Char
toHex : Int -> String
toHex n =
let
hex = String.toUpper(toRadix n)
sealed class Color {
object Red: Color()
object Green: Color()
object Blue: Color()
class Rgb(val r: Int,val g: Int,val b: Int): Color()
}
fun main(args: Array<String>) {
fun color(c: Color): String = when(c) {
Color.Red -> "#FF0000"
@xmeta
xmeta / Color.ts
Last active April 10, 2016 07:53
interface Color{}
class Red implements Color{}
class Green implements Color{}
class Blue implements Color{}
class Rgb implements Color {
constructor(public r: number,public g: number,public b: number) {
}
}
function to_hex(n: number): string {

タイトル

第一章