首页 软件开发 代码片段 ( Page 621 )

代码片段 8064

#Python
git 提交到 gerrit

#!/usr/bin/env python #coding:utf-8 ''' ''' import os import sys originName = "origin" ver…

2015-01-02 616

#HTML
改变s:datetimepicker 样式

function setDateStyle(id) { document.getElementById(id).childNodes(1).style.cssText= "heig…

2015-01-02 149

#HTML
jQuery-UI(菜单样式、拖动、放大/缩小、排序…)

<!doctype html> <html> <head> <title>jquery-ui</title> <m…

2015-01-02 901

#Ruby
Ruby+Erlang抓取贴吧图片

#coding utf-8 #!/usr/bin/env ruby -w require "open-uri" require "nokogiri" require "thread…

2015-01-02 898

#Ruby
rails export search results as excel by spreadsheet

require 'spreadsheet' # to create a spreadsheet file @selectedevent=Event.find_by_id(param…

2015-01-02 178

#Ruby
Ruby 判断字符串是否对称

#分两种情况 #第一种是奇数位字符串 def method str p str == str.reverse ? "Yes" : "No" end #另一种是偶数位字符串 def …

2015-01-01 882

#Ruby
Ruby运算符重载

class String def - str self.gsub(str, "") end end puts "Hello" - "H"

2015-01-01 252

#SQL
根据表的主键字段和数据字段从其它数据库同步相同表的数据

USE [CMS2] GO DECLARE @sql NVARCHAR(MAX) SET @sql = N'MERGE [dbo].[RolePermission] target …

sql
2015-01-01 943

#APS/Basic
VB.NET使用FTP上传文件

Private Sub FtpUpLoad(ByVal Str_Path As String, ByVal Str_Filename As String, ByVal Str_Us…

2015-01-01 706

#C/C++
c++实现的快速排序、堆排序、归并排序等排序算法全集

#include<stdio.h> #include<stdlib.h> struct node { int key; }r[20]; struct rno…

2015-01-01 158

#CSS
使用css3给页面添加阴影效果

使用css3给页面添加阴影效果 <!doctype html> <html> <head> <style type="text/…

css
2015-01-01 308

#C/C++
压栈出栈遍历栈实例代码

#include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct N…

2015-01-01 1,015