Skip to content

Instantly share code, notes, and snippets.

@reinislejnieks
reinislejnieks / gist:2158961
Created March 22, 2012 15:17
Google Fonts use example - Helvetica like
<link href="http://fonts.googleapis.com/css?family=Anonymous+Pro:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" >
<style>
.helv {font:14px 'Anonymous Pro', serif;}
</style>
<p class="helv">I'm almost cool like helvetica.</p>
<p>I'am normal Arial shit.</p>
<a href="http://www.webdesignshock.com/helvetica-free-download" target=_blank>http://www.webdesignshock.com/helvetica-free-download</a> - tady doporučují, které fonty použít, které vypadají nejvíce Helvetica-like. Myslm, že tenhle je v cajku, ale klidně čekni další.
@reinislejnieks
reinislejnieks / README.markdown
Created April 3, 2012 12:19 — forked from marijn/README.markdown
List of nationalities in YAML, CSV and TXT format

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

##List of countries

I've also compiled a list of countries

@reinislejnieks
reinislejnieks / README.markdown
Last active July 6, 2017 09:15 — forked from marijn/README.markdown
List of countries in YAML, CSV and TXT format

#List of countries

It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.

List of nationalities

I've also compiled a list of nationalities

@reinislejnieks
reinislejnieks / gist:2891322
Created June 7, 2012 20:21
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@reinislejnieks
reinislejnieks / profile.php
Created August 19, 2012 14:01 — forked from anonymous/profile.php
Wordpress front end log in page template with multiple custom meta_key - input, select, dropdown
<?php
global $user_ID, $user_identity, $user_level;
if ($user_ID) {
if($_POST)
{
@reinislejnieks
reinislejnieks / foundation-menu.php
Created September 3, 2012 17:23 — forked from awshout/foundation3-navbar-menu.php
WordPress walker for ZURB's Foundation Nav Bar classes
add_theme_support( 'menus' );
/*
http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus( array(
'main-menu' => 'Main Menu' // registers the menu in the WordPress admin menu editor
) );
@reinislejnieks
reinislejnieks / neat_r.php
Created October 5, 2012 15:27 — forked from jakelodwick/neat_r.php
neat_r, a tidy alternative to print_r (PHP)
<?PHP
/*
neat_r works like print_r but with much less visual clutter.
By Jake Lodwick. Copy freely.
Example with an array:
$data = array(
"mode" => "sets",
@font-face {
font-family: '[set]Foundicons';
src: url('fonts/[set]_foundicons.eot');
src: url('fonts/[set]_foundicons.eot?#iefix') format('embedded-opentype'),
url('fonts/[set]_foundicons.woff') format('woff'),
url('fonts/[set]_foundicons.ttf') format('truetype'),
url('fonts/[set]_foundicons.svg#[set]Foundicons') format('svg');
font-weight: normal;
font-style: normal;
}
@reinislejnieks
reinislejnieks / jquery.spin.js
Created November 8, 2012 21:32 — forked from innotekservices/jquery.spin.js
jQuery Plugin for Spin.js
/*
Use this with https://github.com/fgnass/spin.js
You can now create a spinner using any of the variants below:
$("#el").spin(); // Produces default Spinner using the text color of #el.
$("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el.
$("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color).
$("#el").spin({ ... }); // Produces a Spinner using your custom settings.
$("#el").spin(false); // Kills the spinner.
<!-- example for the http://retinafy.me ebook -->
<style>
div.rss {
background: url(rss.svg);
width: 32px;
height: 32px;
}
body.no-svg div.rss {