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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
@echo off | |
@rem set login=wss | |
@rem set password=123456 | |
@rem set reldb_server="192.168.0.168" | |
@rem commom parameter | |
set reportdb="Report_DB_Name" | |
set contentdb_server="DB_Server" |
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
require 'goto' | |
def test | |
frame_start | |
label(:start) { goto :b } | |
label(:a) { print "world!\n"; goto :c } | |
label(:b) { print "hello "; goto :a } |
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
#!/usr/bin/env bash | |
set -e | |
# | |
# filename prefix | |
# fs_|ft_ : function return string or table | |
# p_ : procedure | |
# t_ : table | |
# dt_ : table data | |
# check_ : check create sql data with selct | |
# task_ : timing task |
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
declare @tableName nvarchar(max) | |
set @tableName = 'project'; | |
-- 递归遍历出@tableName外键链 | |
with | |
cte_fk (fk_name, referenced, parent, fk_level) | |
as ( | |
select | |
name as fk_name, |
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
declare @tableName nvarchar(max) | |
set @tableName = 'project'; | |
-- 递归遍历出@tableName外键链 | |
with | |
cte_fk (fk_name, referenced, parent, referenced_item, parent_item, fk_level) | |
as ( | |
select | |
fk.name as fk_name | |
,object_name(fk.referenced_object_id) as referenced |
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
WITH CTE_FKCols | |
AS ( | |
SELECT FK.NAME | |
,'[' + STUFF(( | |
SELECT ',' | |
,object_name(Col.object_id) + '.' + col.NAME | |
FROM sys.foreign_key_columns C | |
INNER JOIN sys.columns Col ON Col.object_id = c.referenced_object_id | |
AND col.column_id = c.referenced_column_id |
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
Sub ExcelPrint | |
Call exportToExcel_ALL() | |
End Sub | |
Public Function exportToExcel_ALL() | |
Dim aryExport(14,3) | |
aryExport(0,0) = "CH57" | |
aryExport(0,1) = "直营业绩周报表" | |
aryExport(0,2) = "A1" | |
aryExport(0,3) = "data" |
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
Sub JiuZheng | |
set chart = ActiveDocument.GetSheetObject("CH86") | |
set notify = ActiveDocument.GetSheetObject("TX06") | |
'notify.setLabel = "hello" | |
Call chart.GetSheet().Activate() | |
''chart.Maximize | |
ActiveDocument.GetApplication.WaitForIdle | |
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
histogram = new Highcharts.Chart( { | |
chart: { | |
renderTo: 'histogram', defaultSeriesType: 'bar', | |
backgroundColor:'rgba(255, 255, 255, 0.1)' | |
}) |