Skip to content

Instantly share code, notes, and snippets.

View html5kan2016-10-16-links.md
@Takazudo
Takazudo / github.css
Created Jun 16, 2016
Marked github.css
View 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;
View cat.js
class Cat {
constructor(name) {
this.name = name;
}
set name(name) {
this._name = name;
}
get name() {
return this._name;
}
@Takazudo
Takazudo / SassMeister-input.scss
Created Jan 26, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.Taro {
%_human{
color: yellow;
}
.body1{
@Takazudo
Takazudo / SassMeister-input.scss
Created Jan 26, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.Taro {
$_color: yellow;
%_Taro-human{
color: $_color;
}
@Takazudo
Takazudo / calendar.js
Created Oct 19, 2014
calender generator
View calendar.js
<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 Feb 17, 2018
position fixed detection
View detectPositionFixed.js
// 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 Jun 20, 2014
html class tweaking
View head.js
/**
* `html` class tweaking
*/
(function() {
var html = document.getElementsByTagName("html")[0];
/* helpers */
var hasClass = function(node, cls) {
@Takazudo
Takazudo / createSinglePipeRequestFn.js
Created Jun 17, 2014
createSinglePipeRequestFn.js
View createSinglePipeRequestFn.js
//===========================================
// API
app.api._createSinglePipeRequestFn = function(options) {
/*
options should have...
type: 'GET' // or 'POST'
url: '/blahblah/'
*/
return (function() {