Skip to content

Instantly share code, notes, and snippets.

alert("Yessss");
function meri() {
alert("Internet");
}
@SomMeri
SomMeri / gist:9367499
Created March 5, 2014 13:49
immovable sprite full version
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Phaser - Making your first game, part 1</title>
<script type="text/javascript" src="js/phaser.1.1.6.min.js"></script>
<style type="text/css">
body {
margin: 0;
}
@SomMeri
SomMeri / gist:8080666
Created December 22, 2013 10:33
Demo for Properties Merging and Transform less.js Issues
<html><head><style>
div{
width:300px;
height:100px;
}
div#spaces{
background-color:yellow;
-webkit-transform: skew(30deg) rotate(30deg) translate(50px,100px);
transform: skew(30deg) rotate(30deg) translate(50px,100px);
}
@SomMeri
SomMeri / html.html
Created July 19, 2013 12:53
Working source map for less
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="theme-simple-mixin.css">
<script src="less.min.js" type="text/javascript"></script>
<title>Less Demo</title>
</head>
<body>
<div class="box">
Box: both text and border colors are functions of the @base variable. <br> The border is 30% lighter and the text is 5% saturated.
@SomMeri
SomMeri / input.less
Created February 28, 2013 13:50
Restrictions on namespaces and mixins names
.amp {
&.ext.support {
matched: amp extended; //all hit this
}
+ .ext.support {
color: plus extended; //all hit this
}
.ext.support {
matched: extended; //all hit this
}
@SomMeri
SomMeri / LightInInternetExplorerr44
Created October 19, 2011 08:11
Add Light to Canvas Scene in Internet Explorer r44
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Voxels</title>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: Monospace;
font-size: 12px;
background-color: #f0f0f0;
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Voxels</title>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: Monospace;
font-size: 12px;
background-color: #f0f0f0;