###Read This http://rogerdudler.github.io/git-guide/
###Only Run First Time
git config --global user.name "BLAH"
git config --global user.email "BLAH@BLAH.com"
git init
###Run Everytime
git add -A
| Ext.define('app.store.Reviews', { | |
| extend: 'Ext.data.Store', | |
| model: 'app.model.Review', | |
| pageSize: 200, | |
| remoteSort: true, | |
| // allow the grid to interact with the paging scroller by buffering | |
| buffered: true, | |
| proxy: { | |
| type: 'ajax', | |
| url: 'review/list', |
| [WebMethod] | |
| public void UploadFile() | |
| { | |
| try | |
| { | |
| //HTTP Context to get access to the submitted data | |
| HttpContext postedContext = HttpContext.Current; | |
| //File Collection that was submitted with posted data | |
| HttpFileCollection Files = postedContext.Request.Files; |
###Read This http://rogerdudler.github.io/git-guide/
###Only Run First Time
git config --global user.name "BLAH"
git config --global user.email "BLAH@BLAH.com"
git init
###Run Everytime
git add -A
| (&(&(objectclass=*)(objectcategory=*))((cn=Hello World*))) | |
| (&(&(objectclass=*)(objectcategory=*))((memberOf=))) |
| [WebMethod] | |
| public void WriteExcelWorkbook(List<DataTable> dataTables, List<string> worksheetNames, string workbookName = "file", bool includeHeaders = true) | |
| { | |
| NPOI.HSSF.UserModel.HSSFWorkbook wb = new NPOI.HSSF.UserModel.HSSFWorkbook(); | |
| //create bold font for headers | |
| var font = wb.CreateFont(); | |
| font.Boldweight = (short)NPOI.SS.UserModel.FontBoldWeight.Bold; | |
| List<string> usedNames = new List<string>(); | |
| for (var xTable = 0; xTable < dataTables.Count; xTable++) |
| var myString = "CN=BlamoMan,OU=Associates,DC=prod-am,DC=ameritrade,DC=com"; | |
| var myRegexp = /CN=(.*?),[A-Z]/g; | |
| var match = myRegexp.exec(myString); | |
| if(match){ | |
| alert(match[1].replace(/\\/,'')); | |
| } |
| gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile=C:\GHOSTSCRIPT\BOOMER.GHOST.pdf C:\GHOSTSCRIPT\BOOMER.pdf |
| [ | |
| { | |
| "firstName":"Paul", | |
| "lastName":"McCartney", | |
| "instrument":"Lead Vocalist" | |
| }, | |
| { | |
| "firstName":"John", | |
| "lastName":"Lennon", | |
| "instrument":"Guitar" |
| Sub RegExParse() | |
| Dim RE As Object, REMatches As Object | |
| Dim pattern As String | |
| Set RE = CreateObject("vbscript.regexp") | |
| pattern = "\[(.*?)\] \[" | |
| With RE | |
| .MultiLine = False | |
| .Global = False |
| var copy = new System.Data.SqlClient.SqlBulkCopy(connectionString); | |
| System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand("select * from someTable",connection); | |
| var reader = command.ExecuteReader(); | |
| copy.DestinationTableName = "destinationTable"; | |
| copy.WriteToServer(reader); | |
| copy.Close(); | |
| connection.Close(); |