Skip to content

Instantly share code, notes, and snippets.

@Takazudo
Takazudo / github.css
Created June 16, 2016 02:10
Marked github.css
html,
body {
color: black
}
#wrapper {
font: 16px helvetica, arial, freesans, clean, sans-serif;
-webkit-font-smoothing: antialiased;
line-height: 1.6;
padding: 3px;
background: #fff;
@Takazudo
Takazudo / cat.js
Last active July 3, 2024 01:28
Cat
class Cat {
constructor(name) {
this.name = name;
}
set name(name) {
this._name = name;
}
get name() {
return this._name;
}
@Takazudo
Takazudo / SassMeister-input.scss
Created January 26, 2015 10:14
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.Taro {
%_human{
color: yellow;
}
.body1{
@Takazudo
Takazudo / SassMeister-input.scss
Created January 26, 2015 10:13
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.Taro {
$_color: yellow;
%_Taro-human{
color: $_color;
}
@Takazudo
Takazudo / calendar.js
Created October 19, 2014 06:06
calender generator
<script type="text/javascript"><!--
function doCal(xxx) {
var now = new Date();
now.setMonth(xxx-1);
var year = now.getFullYear();
var month = now.getMonth() + 1;
var today = now.getDate();
now.setDate(1);
var startDay = now.getDay();
@Takazudo
Takazudo / detectPositionFixed.js
Last active February 17, 2018 13:58
position fixed detection
// a little modified version of
// position: fixed support detection from jQuery mobile.
//
// This script also defines Android2.x as out of support.
//
// https://github.com/jquery/jquery-mobile/blob/master/js/support.js
// http://demos.jquerymobile.com/1.4.4/toolbar-fixed/
// http://jimbergman.net/webkit-version-in-android-version/
Modernizr.addTest('positionfixed', function() {
@Takazudo
Takazudo / head.js
Created June 20, 2014 08:57
html class tweaking
/**
* `html` class tweaking
*/
(function() {
var html = document.getElementsByTagName("html")[0];
/* helpers */
var hasClass = function(node, cls) {
@Takazudo
Takazudo / createSinglePipeRequestFn.js
Created June 17, 2014 11:32
createSinglePipeRequestFn.js
//===========================================
// API
app.api._createSinglePipeRequestFn = function(options) {
/*
options should have...
type: 'GET' // or 'POST'
url: '/blahblah/'
*/
return (function() {