This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[self.tableView setAllowsMultipleSelection:YES]; //允许选择多行 | |
} | |
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
if ([tableView indexPathsForSelectedRows].count) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MyLayer.m | |
// | |
// Created by Chris Miles on 14/03/11. | |
// Copyright 2011 Chris Miles. | |
// | |
/* | |
Animate custom property example: |