Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / Responsive-slanted-divs-with-CSS.markdown
Created November 26, 2014 14:44
Responsive slanted divs with CSS

Responsive slanted divs with CSS

No background images or css triangles technique for responsive slanted divs.

A Pen by Larry Naman on CodePen.

License.

@jgoux
jgoux / app.js
Created April 15, 2014 14:53
Ionic / AngularJS service wrapper for Web SQL API / SQLite-Cordova-Plugin
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});
@fprochazka
fprochazka / BasePresenter.php
Created October 6, 2012 16:22
Image pipe for #nettefw templates
<?php
/**
* @author Filip Procházka <[email protected]>
*/
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
/**
* @var \Img\ImagePipe
@artero
artero / launch_sublime_from_terminal.markdown
Last active September 12, 2024 02:13 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@bzerangue
bzerangue / books-of-the-bible.xml
Created August 20, 2011 23:14
A list of the Books of the Bible in XML format.
<?xml version="1.0" encoding="UTF-8"?>
<books-of-the-bible>
<entry handle="01">
<name handle="genesis">Genesis</name>
<testament handle="old-testament" abbreviation="OT">Old Testament</testament>
<chapters>50</chapters>
</entry>
<entry handle="02">
<name handle="exodus">Exodus</name>
<testament handle="old-testament" abbreviation="OT">Old Testament</testament>
@fprochazka
fprochazka / RadioListExtension.php
Created August 17, 2011 11:19
Nette Framework hack for getting controls and labels one by one
<?php
namespace Kdyby\Forms;
use Nette;
use Nette\Forms\Controls\RadioList;
use Nette\Utils\Html;
use Nette\Utils\Arrays;