tell you some files changes
git status
now revert back to the head with the changes that weren't commited
git checkout path/to/file.txt
run git status again and make sure there is nothing left
| //requires signal-js, crossroads, and hasher to work | |
| crossroads.addRoute('order/{id}', function(id){ | |
| console.log(id); | |
| }); | |
| function parseHash(newHash, oldHash) { | |
| crossroads.parse(newHash); | |
| } | |
| hasher.initialized.add(parseHash); //parse initial hash |
| var displaynames = []; | |
| var data = JSON.parse(document.body.getElementsByTagName('pre')[0].innerHTML).data; | |
| data.forEach(function(item){ | |
| if('displayname' in item.Properties && item.Properties.displayname != null && item.Properties.displayname.length> 0){ | |
| var displayname = item.Properties.displayname[0]; | |
| displaynames.push([displayname]); | |
| } | |
| }); | |
| var csvContent = ''; | |
| function exportToCsv(filename, rows) { |
tell you some files changes
git status
now revert back to the head with the changes that weren't commited
git checkout path/to/file.txt
run git status again and make sure there is nothing left
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <h1>This is a test page</h1> | |
| </body> | |
| </html> |
| CREATE EXTERNAL TABLE 'path/to/flat/file.dat' | |
| USING ( delim ',' datestyle 'YMD' datedelim '-' REMOTESOURCE 'ODBC' requireQuotes true quotedvalue 'yes' LOGDIR 'path/to/log/directory/' nullvalue '') AS | |
| SELECT * | |
| FROM MonkeyPants |
| --determine which queries are running | |
| SELECT * | |
| FROM sys.dm_exec_requests requests | |
| WHERE requests.session_id > 50 | |
| ORDER BY total_elapsed_time DESC | |
| SELECT requests.session_id, | |
| requests.status, | |
| requests.command, | |
| requests.statement_start_offset, |
| public class SubstringResponse { | |
| public string Value { get; set; } | |
| public int loc1 { get; set; } | |
| public int loc2 { get; set; } | |
| } | |
| public static SubstringResponse Substring(this string source, string startPos, string endPos) { | |
| return Substring(source, new List<string>() { startPos }, endPos); | |
| } | |
| public static SubstringResponse Substring(this string source, List<string> startPos, string endPos) { |
| { | |
| fieldLabel: 'Code Instance', | |
| itemId: 'parentFld', | |
| border: 1, | |
| html: '<textarea></textarea>', | |
| /* Overriding getValue function of the field to pull value from the codemirror text area*/ | |
| getValue: function (value) { | |
| return this.getCodeMirror().getValue(); | |
| }, | |
| /*Overriding setValue function of the field to put the value in the code mirror window*/ |
| 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(); |
| 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 |