Skip to content

Instantly share code, notes, and snippets.

Daigo Fujiwara daigofuji

Block or report user

Report or block daigofuji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daigofuji
daigofuji / invader.js
Created Jan 7, 2015
ScriptCraft drone plugin for space invader 8-bit art
View invader.js
var Drone = require('../drone').Drone;
var blocks = require('blocks');
/************************************************************************
### Drone.invader() method
Creates an 8-bit space invader, 11 blocks wide and 8 blocks high,
made out of black wool, unless otherwise specified.
#### Parameters
@daigofuji
daigofuji / mario.js
Last active Aug 29, 2015
ScriptCraft drone plugin, create 8-bit Mario
View mario.js
var Drone = require('../drone').Drone;
var blocks = require('blocks');
/************************************************************************
### Drone.mario() method
Creates an 8-bit mario, 12 blocks wide and 16 blocks high, made out of wool.
#### Parameters
@daigofuji
daigofuji / index.html
Created Jul 29, 2014
Barebone index.html
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/css/foundation.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
</head>
<body>
@daigofuji
daigofuji / _padding-margin.scss
Last active Aug 29, 2015
OOCSS _padding-margin.scss (From @kianoshp)
View _padding-margin.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/**************** padding and margin settings *****************
Setting padding and margins to be added to different sections
This sections contains individual setting and also a mixin
to be able to add to different sections
@daigofuji
daigofuji / SassMeister-input.scss
Created May 18, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@function grid-calc($colNumber, $totalColumns) {
@return percentage(($colNumber / $totalColumns));
}
.stream-image-right {
@daigofuji
daigofuji / SassMeister-input.scss
Created May 4, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.6)
// Compass (v1.0.0.alpha.18)
// ----
$primary-color: #f00;
@mixin set-color($color) {
color: $color !important;
&.inverted {
View example config.rb for sass compass
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"
# You can select your preferred output style here (can be overridden via the command line):
output_style = :compact
View simple-3d-card-flip.html
<!DOCTYPE html>
<html>
<head>
<title>simple3d</title>
<style type="text/css" title="text/css">
.sandbox-wrap {
-webkit-perspective: 800px;
-moz-perspective: 800px;
-o-perspective: 800px;
perspective: 800px;
@daigofuji
daigofuji / WP custom login
Last active Dec 18, 2015
Customizing wordpress "login screen." Add this to wp-content/themes/YOUR_THEME_FOLDER/functions.php
View WP custom login
// Custom login page. Modifying logo image, link and title.
function my_custom_login_logo() {
echo '<style type="text/css"> h1 a { background-image:url('.get_stylesheet_directory_uri().'/img/MYLOGO.png) !important; }</style>';
}
add_action('login_head', 'my_custom_login_logo');
function namespace_login_headerurl( $url ) {
$url = get_bloginfo( 'url' );
return $url;
}
You can’t perform that action at this time.