This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[source, python] | |
---- | |
include::test.py[lines=4..5] | |
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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%; |
\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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (..) | |
import Html exposing (text) | |
import String | |
import Char | |
toHex : Int -> String | |
toHex n = | |
let | |
hex = String.toUpper(toRadix n) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |