Skip to content

Instantly share code, notes, and snippets.

View xkeshav's full-sized avatar
🟪

Keshav Mohta xkeshav

🟪
View GitHub Profile
@terkel
terkel / _easing.scss
Last active April 8, 2024 13:40
Timing functions for CSS animations and transitions
// _easing.scss, CSS easing functions - gist.github.com/terkel/4377409
// Based on Caesar - matthewlein.com/ceaser
$linear: cubic-bezier( 0.250, 0.250, 0.750, 0.750 );
$ease: cubic-bezier( 0.250, 0.100, 0.250, 1.000 );
$ease-in: cubic-bezier( 0.420, 0.000, 1.000, 1.000 );
$ease-out: cubic-bezier( 0.000, 0.000, 0.580, 1.000 );
$ease-in-out: cubic-bezier( 0.420, 0.000, 0.580, 1.000 );
$ease-in-quad: cubic-bezier( 0.550, 0.085, 0.680, 0.530 );
@xkeshav
xkeshav / calss.debug.php
Created May 23, 2011 07:35
how to debug in php files
/** This function is used to debug variables during page execution
* @param $what , the variable which need to debug,can be array or single variable
* @param $more , to know the method and line number where that variable is used
* @param $die , set TRUE if want to stop the page
* how to use : debug::watch($postarray,1,1);
* @author keshav mohta
* @date Aug 12, 2010
*/
class debug()
{
@th0ma5w
th0ma5w / horoscopescrape.py
Created January 12, 2011 14:38
Example of Generating URLs for downloading
"""
Creates a list of URLs to stdout based on repeating patterns found in the site, suitable for use with WGET or CURL.
"""
import datetime
scopes=[
"aries",
"taurus",
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}