Skip to content

Instantly share code, notes, and snippets.

View Cifro's full-sized avatar

Cifro Nix Cifro

View GitHub Profile
@Cifro
Cifro / AnotherLatteMacros.php
Created July 3, 2010 15:20
Static class for additional Nette Latte Macros with first macro {each}{eachelse}{/each}
<?php
namespace Nette\Templates;
use Nette\Object;
use Nette\String;
/**
* Another Latte Macros
*
@Cifro
Cifro / gist:796575
Created January 26, 2011 11:16
Dump z keylogera zapnutého počas hrania Half Life 2 :D
<!--02.11.2007, 16:45. User: "Cifro". Window title:"HALF-LIFE 2"-->
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyrqwwwqddddwwqwwwwwwwddwsadddwwwwwsssaswwwwwwwdaqqwwwwwwwwwwwwwwdwqrwdwdawwwsraqeaaeedewwdewessssawwwwwwewwwdawwwwwwwwswewwwqwawawwrrwwwwwwwddsddedewwwwwwsdwdwweweeedeqwwwwwwedqwwdawwwwwwwwwwwwwwdwwwwwawwwwwwwwwwwwwwwwwwwwwwwwwwwwawwwwwwwwwwwwwwwwawwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwawwwwwewwsddawwwwwaaaaaaaaaaaaaaaaaaaaaaaawwwwwwwwwwwwwwwaadddwwwwwwwdddddaaawwwwwwwwwwwwwwwddddddddwwwwwwawwwwwwwwwwwwwwdwwwwwwwwwwwwdwwwwwwwwwwwwwwwwwdddaaaaaaaaaawwwwwwwdwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwdwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwawwwwwwwwddwwwwwssssssssssssssssdssssssssssssssssssssssssswaaaaaawdddddddddddddddddddddddddddddddddawwwwwwwwwwwaaaawssssssaaaaaaasssssssssswwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwsssssssssssssssssswssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssdsswwwwwwwwwaaaaaaaaaaadwdddddwwwwwwwwwwwwwwwwwwwww
@Cifro
Cifro / gradient-bg.svg
Created January 26, 2011 22:39
When will be Opera support CSS3 gradients?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Cifro
Cifro / fade-out-divider.html
Created January 29, 2011 22:22
2px height divider with fade-out effect. Demo: http://jsbin.com/utuga4
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Fade-out divider</title>
<style>
::-moz-selection{ background: #bbb; color:#fff; text-shadow: none !important; }
@Cifro
Cifro / png2datauri.php
Created January 30, 2011 15:07
PNG -> DataURI in LESS syntax
<title>PNG -&gt; DataURI in LESS syntax</title>
<form method=post>
<input type="text" size="150" name="folder">
<input type="submit" value="Go">
</form>
<pre>
<?php
// save output to e.g. icons.less
@Cifro
Cifro / vlcplaylist.php
Created February 27, 2011 13:52
Getting and parsing VLC playlist from VLC HTTP interface
<head>
<title>VLC playlist na webe</title>
<meta charset="utf-8">
</head>
<pre>
<?php
class VLCPlaylist{
@Cifro
Cifro / HomepagePresenter.php
Created June 2, 2011 07:29 — forked from fprochazka/HomepagePresenter.php
Mobile device detection in Nette
<?php
class HomepagePresenter extends BasePresenter
{
public function actionDefault()
{
$detector = $this->context->detector;
if ($detector->isMobile()) {
$this->redirect("mobile");
@Cifro
Cifro / cookies.on.steroids.js
Created August 31, 2011 17:52
JavaScript cookies on steroids
/**
* Cookies on steroids
* https://gist.github.com/1184183
*
* Copyright (c) 2011 Cifro Nix (about.me/Cifro)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
@Cifro
Cifro / NaoPositions.py
Created October 20, 2011 19:27
NaoPositions.py - Python module with Nao's basic positions
## @package NaoPositions
# @author Cifro Nix (http://about.me/Cifro)
# @version 1.0
#
# Contains functions for basic Nao's positions
#
# Requires naoqi-sdk-1.10.52 or newer
#
# Up to date source code is available at:
# https://gist.github.com/1302060
@Cifro
Cifro / pkg_install_python_ubuntu_11_10_hack.sh
Created October 26, 2011 22:25
Installation script of OpenRTM-aist 1.1.0-RC1 Python version on Ubuntu 11.10
#!/bin/sh
#
# @file pkg_install_ubuntu.sh
# @brief OpenRTM-aist dependent packages install script for Debian-sarge
# @author Noriaki Ando <[email protected]>
# Shinji Kurihara
# Tetsuo Ando
# Harumi Miyamoto
#
# Cifro Nix // Modified for Ubuntu 11.10, there is no package for 11.10 yet