Skip to content

Instantly share code, notes, and snippets.

@pyricau
pyricau / JellyBeanSpanFixTextView.java
Last active October 8, 2021 07:16
A TextView to prevent a bug with spans on JellyBean: http://code.google.com/p/android/issues/detail?id=35466
// Copyright 2012 Pierre-Yves Ricau
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
<?php
/**
* A class for true random hash string generation.
*/
class RandHash
{
/**
* @param string $prefix to be used with uniqid()
* @return string hash
*/
@jamband
jamband / LoginAttempt.php
Created April 12, 2012 17:32
Yii Framework: Test case in LoginAttemptTest.php
<?php
/**
* LoginAttempt class file.
*
* The followings are the available columns in table 'login_attempt':
* @property integer $id
* @property string $ip
* @property string $login
* @property integer $create_time
@tsabat
tsabat / zsh.md
Last active April 21, 2025 07:22
Getting oh-my-zsh to work in Ubuntu