Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| package com.asynctask.util; | |
| import android.os.Handler; | |
| import android.os.Looper; | |
| import android.util.Log; | |
| import java.io.InterruptedIOException; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.concurrent.Callable; |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light"> | |
| <item name="android:windowNoTitle">true</item> | |
| <item name="windowActionBar">false</item> <!-- For 2.x version --> | |
| </style> | |
| </resources> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/bin/bash | |
| # Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
| # Install stuff # | |
| ################# | |
| # Install development tools and some misc. necessary packages | |
| yum -y groupinstall "Development tools" | |
| yum -y install zlib-devel # gen'l reqs |
A list of amazingly awesome PHP libraries that you should be using:
| LOCAL_PATH:= $(call my-dir) | |
| include $(CLEAR_VARS) | |
| LOCAL_SRC_FILES := \ | |
| src/dec/alpha.c \ | |
| src/dec/buffer.c \ | |
| src/dec/frame.c \ | |
| src/dec/idec.c \ | |
| src/dec/io.c \ | |
| src/dec/layer.c \ |
| check process redis-server | |
| with pidfile "/var/run/redis.pid" | |
| start program = "/etc/init.d/redis-server start" | |
| stop program = "/etc/init.d/redis-server stop" | |
| if 2 restarts within 3 cycles then timeout | |
| if totalmem > 100 Mb then alert | |
| if children > 255 for 5 cycles then stop | |
| if cpu usage > 95% for 3 cycles then restart | |
| if failed host 127.0.0.1 port 6379 then restart | |
| if 5 restarts within 5 cycles then timeout |
| jQuery.fn.shake = function(intShakes, intDistance, intDuration) { | |
| this.each(function() { | |
| $(this).css({ | |
| position: "relative" | |
| }); | |
| for (var x = 1; x <= intShakes; x++) { | |
| $(this).animate({ | |
| left: (intDistance * -1) | |
| }, (((intDuration / intShakes) / 4))).animate({ | |
| left: intDistance |