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
curl -sS -o helm-v3.5.4-linux-amd64.tar.gz https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz | |
tar zxvf helm-v3.5.4-linux-amd64.tar.gz | |
$env:PATH = "$($env:PATH):$(pwd)/linux-amd64/" | |
$env:NAMESPACE = 'test' | |
$helmOut = helm help | |
echo "ErrorCode:$LASTEXITCODE" | |
echo "helm:$helmOut" | |
exit $LASTEXITCODE |
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
prefs set fiddler.network.proxy.registrationhostname |
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 SubPage(pageIndex, pageSize, totalCount, pageLabelCount) { | |
this.pageIndex = pageIndex | |
this.pageSize = pageSize | |
this.totalCount = totalCount | |
this.pageLabelCount = pageLabelCount | |
} | |
SubPage.prototype = { | |
pageIndex: 1, pageSize: 20, totalCount: 0, pageLabelCount: 5, |
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
var uploader = new plupload.Uploader({ | |
runtimes: 'gears,flash,html5,silverlight,browserplus', | |
browse_button: 'A3', container: 'content', | |
max_file_size: '10mb', | |
resize: { width: 320, height: 240, quality: 90 }, | |
url: 'invoice.aspx', | |
flash_swf_url: 'js/Moxie.swf', | |
silverlight_xap_url: 'js/Moxie.xap', | |
filters: [ | |
{ title: "图片", extensions: "jpg,gif,png" }, |
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
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
public static Page<int> page; | |
static void Main(string[] args) | |
{ | |
Console.Write("请输入每页显示数量:"); | |
int pageSize = int.Parse(Console.ReadLine()); |
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
import java.util.ArrayList; | |
public class Main { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
Page<String> page = new Page<String>(new ArrayList<String>(), 20, 12, | |
1000, 8); |
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
<?php | |
require_once 'Page.class.php'; | |
$page = new Page(array("<h3>demo is not list</h3>"), (key_exists("page", $_GET) ? $_GET["page"] : 1), 12, 1000, 8); | |
echo "Page index: <font color='red'>" . $page->getPageIndex() . "</font> PageTotal page: <font color='red'>" . $page->getTotalPage() . "</font></br >"; | |
echo "<br />page list:<br /><br />"; | |
foreach ($page->getList() as $item) { |
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
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// 分页类 | |
/// </summary> | |
/// <typeparam name="T">实体类型</typeparam> | |
public class Page<T> : IEnumerable<T> | |
{ | |
/// <summary> |
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
import java.util.ArrayList; | |
import java.util.List; | |
import java.lang.Math;; | |
public class Page<T> { | |
public Page(List<T> list,int pageIndex,int pageSize,int totalCount,int labelCount) | |
{ | |
this.setPageLabelCount(labelCount); | |
this.setList(list); | |
this.setPageIndex(pageIndex); |
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
<?php | |
/** | |
* author: gool | |
**/ | |
//分页信息类,移植自C# | |
class BasePage { | |
///当前页号 | |
private $pageIndex = 1; |
NewerOlder