Skip to content

Instantly share code, notes, and snippets.

View sam5-hub's full-sized avatar

Sam5 sam5-hub

  • Sam5.Pro
  • GZ
View GitHub Profile
@mralexgray
mralexgray / MyLayer.m
Created October 27, 2012 16:30 — forked from chrismiles/MyLayer.m
Animate a custom property in a CALayer example.
//
// MyLayer.m
//
// Created by Chris Miles on 14/03/11.
// Copyright 2011 Chris Miles.
//
/*
Animate custom property example:
@mmacedo
mmacedo / source.fish
Last active August 9, 2017 04:49
Source bash/zsh/ksh files
function _exec_with
set -l shell $argv[1]
set -l file $argv[2]
set -l code $argv[3]
set -l source
switch "$shell"
case bash zsh ksh
set source .
case '*'
@Amztion
Amztion / TableViewController.m
Last active March 3, 2017 06:23
在点击 UITableViewCell 时展开、收缩表格
- (void)viewDidLoad
{
[super viewDidLoad];
[self.tableView setAllowsMultipleSelection:YES]; //允许选择多行
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([tableView indexPathsForSelectedRows].count) {
@1694kyle
1694kyle / setup.py
Created September 23, 2015 23:36
cx_freeze setup for scrapy proj
# Description: This is the cx_Freeze setup file for creating an exe program
# =============================================================================
from cx_Freeze import setup, Executable
import platform
# NOTE: you can include any other necessary external imports here as well
if platform.system() == 'Windows':
bse = 'Win32GUI'
else:
bse = None