Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <!doctype html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
| <title>Twitter widget</title> |
| @interface UILabelStrikethrough : UILabel { | |
| int xOffset; | |
| int yOffset; | |
| int widthOffset; | |
| int stroke; | |
| UIColor* strokeColor; | |
| } | |
| @property (nonatomic) int xOffset; | |
| @property (nonatomic) int yOffset; | |
| @property (nonatomic) int widthOffset; |
| // | |
| // KSDIdlingWindow.h | |
| // | |
| // Created by Brian King on 4/13/10. | |
| // Copyright 2010 King Software Designs. All rights reserved. | |
| // | |
| // Based off: | |
| // http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch | |
| // |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| angular.module('app', []); | |
| angular.module('app').controller | |
| ( 'MainCtrl' | |
| , function($scope,$locale) { | |
| $scope.currentYear = new Date().getFullYear() | |
| $scope.currentMonth = new Date().getMonth() + 1 | |
| $scope.months = $locale.DATETIME_FORMATS.MONTH | |
| $scope.ccinfo = {type:undefined} | |
| $scope.save = function(data){ |
| /** | |
| * Example usage of Stripe java bindings. | |
| * See https://stripe.com/docs/libraries#java-library | |
| * | |
| * Usage: | |
| * mkdir stripe-test | |
| * cd stripe-test | |
| * wget https://code.stripe.com/stripe-java-latest.jar | |
| * wget http://google-gson.googlecode.com/files/google-gson-2.2.2-release.zip | |
| * unzip google-gson-2.2.2-release.zip |
| import java.io.UnsupportedEncodingException; | |
| import com.stripe.model.Charge; | |
| import com.stripe.util.StripeClient; | |
| public class StripeTest { | |
| public static void main(String[] args) { | |
| try { | |
| StripeClient.setKey("your-api-key"); |
| /****** Object: StoredProcedure [dbo].[GetJSON] Script Date: 5/28/2013 4:31:01 PM ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| CREATE procedure [dbo].[GetJSON] | |
| ( | |
| @table_name varchar(50), |
| from scrapy.xlib.pydispatch import dispatcher | |
| from scrapy import signals | |
| from scrapy.exceptions import DropItem | |
| from scrapy.utils.serialize import ScrapyJSONEncoder | |
| from carrot.connection import BrokerConnection | |
| from carrot.messaging import Publisher | |
| from twisted.internet.threads import deferToThread |