Skip to content

Instantly share code, notes, and snippets.

View shotastage's full-sized avatar
🖥️
Code now!

Shota Shimazu shotastage

🖥️
Code now!
View GitHub Profile
@shotastage
shotastage / variables.scss
Created September 7, 2016 00:59
Sass Basic Variables
$default-color: #fff;
$default-background: #333;
.button {
display: inline-block;
width: 120px;
height: 55px;
background: $default-background;
color: $default-color;
border-radius: 5px;
@shotastage
shotastage / irir.css
Created September 7, 2016 06:21
イライラCSS
.button {
display: inline-block;
width: 120px;
height: 55px;
line-height: 55px;
background: #333;
color: #fff;
border-radius: 5px;
text-align: center;
}
@shotastage
shotastage / hello.js
Created September 7, 2016 07:37
JavaScript Hello World
console.log("Hello, world!");
// or
alert("Hello, world!");
@shotastage
shotastage / hello.c
Created September 7, 2016 08:02
Hello world of C
#include <stdio.h>
int main(int argc, char *args[]) {
printf("Hello, world!\n");
return 0;
}
@shotastage
shotastage / main.swift
Created September 7, 2016 08:03
Hello world of Swift
print("Hello, world!")
@shotastage
shotastage / mixin.scss
Last active September 8, 2016 01:44
Sass mixin sample
@mixin prefix($prop, $arg...) {
-webkit-#{$prop}: $arg;
-moz-#{$prop}: $arg;
-ms-#{$prop}: $arg;
#{$prop}: $arg;
}
.button {
@include prefix(appearance, none);
}
@shotastage
shotastage / prefix.css
Created September 7, 2016 12:50
Prefixes
button {
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none
appearance: none;
}
@shotastage
shotastage / hello.py
Created September 7, 2016 14:13
Hello world program of Python3
// python 2.x
print "Hello, world!"
// python 3.x
print("Hello, world!")
@shotastage
shotastage / hello.rb
Created September 7, 2016 14:16
Hello world of Ruby
print "Hello World\n"
@shotastage
shotastage / hello.sh
Created September 7, 2016 14:23
Hello World (Shell Script)
#!/usr/bin/env bash
echo "Hello, world!"