Skip to content

Instantly share code, notes, and snippets.

@bendc
bendc / easing.css
Created September 23, 2016 04:12
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@vratiu
vratiu / .bash_aliases
Last active April 22, 2024 01:54
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@lethargicpanda
lethargicpanda / TTSTestActivity.java
Created October 19, 2010 14:10
A basic activity to start to play with TextToSpeech on Android
public class TTSTestActivity extends Activity implements OnInitListener {
private static final int MY_DATA_CHECK_CODE = 0;
private TextToSpeech mTts;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.tts_layout);
// check whether TTS resources are available on the device
Intent checkIntent = new Intent();