Skip to content

Instantly share code, notes, and snippets.

View yomotsu's full-sized avatar

Akihiro Oyamada yomotsu

View GitHub Profile
@yomotsu
yomotsu / rename.py
Last active March 24, 2022 14:14 — forked from edom18/rename.py
import bpy
for obj in bpy.data.objects:
obj.name = 'obj'
for mesh in bpy.data.meshes:
mesh.name = 'mesh'
for armature in bpy.data.armatures:
armature.name = 'arm'
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break
@yomotsu
yomotsu / events.js
Last active December 11, 2015 18:38 — forked from Takazudo/events.js
/* eventmodule */
/* EventsClass for extend */
var EventModule = function () {}
EventModule.prototype.on = function ( evName, callback ) {
var _this = this;
if ( !this._observer ) {
this._observer = $( {} );
@yomotsu
yomotsu / ua.js
Created January 18, 2013 09:40 — forked from Takazudo/ua.js
/* UA detection */
var ua = ( function () {
var ua = {};
var navigator = window.navigator;
var platforms = [
{
identity : 'ie9',
regex : [
{ property : 'userAgent', characters : /MSIE 9\./ }
@yomotsu
yomotsu / _mixin_linear-gradient.scss
Created May 24, 2011 07:38 — forked from hiloki/_mixin_linear-gradient.scss
sass @Minxin linear-gradient() including SVG code for IE9
@mixin linear-gradient($angle, $color1, $offset1, $color2 ,$offset2:100, $color3:null, $offset3:100, $color4:null, $offset4:100, $color5:null, $offset5:100){
$angle_webkit:'';
$angle_svg:'';
$color-stop1_css:'#'#{$color1}' '#{$offset1}'%';
$color-stop2_css:',#'#{$color2}' '#{$offset2}'%';
$color-stop3_css:'';
$color-stop4_css:'';
$color-stop5_css:'';
$color-stop1_svg:'%3cstop%20style%3d%22stop%2dcolor%3a%23'#{$color1}'%22%20offset%3d%22'#{$offset1}'%25%22%2f%3e';
$color-stop2_svg:'%3cstop%20style%3d%22stop%2dcolor%3a%23'#{$color2}'%22%20offset%3d%22'#{$offset2}'%25%22%2f%3e';