Skip to content

Instantly share code, notes, and snippets.

@cheets
cheets / svg-differences.html
Created April 14, 2015 11:19
First block is exported from Illustrator and cleaned with svgo (https://github.com/svg/svgo) using "--pretty". Second block is the same svg icon this time refactored manually.
<!-- Illustrator export + 'svgo --pretty' -->
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" width="50" height="50" viewBox="0 0 50 50">
<defs>
<style>
.cls-3 { fill: #e7e7e7; } .cls-4 { filter: url(#color-overlay-1); font-size: 26px; } .cls-5 { fill: #8d8d8d; font-size: 26px; font-family: &quot;Book Antiqua&quot;; }
</style>
<filter id="color-overlay-1" filterUnits="userSpaceOnUse">
<feFlood flood-color="#8d8d8d" flood-opacity="1"/>
<feComposite operator="in" in2="SourceGraphic"/>
@cheets
cheets / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cheets
cheets / pom.xml
Created June 12, 2014 10:38
Using rubygems to compile compass/sass with maven
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.arcusys</groupId>
<artifactId>theme</artifactId>
<packaging>war</packaging>
<name>theme Theme</name>
<version>1.0-SNAPSHOT</version>
@cheets
cheets / pom.xml
Created January 14, 2014 18:46
Example Liferay parent pom (6.1.2)
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>example-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Example parent project</name>