This file contains hidden or 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
| /** | |
| After any change in the sheet, update the combobox options in the Form | |
| */ | |
| function onChange(e) { | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; | |
| var range = sheet.getDataRange(); | |
| var values = range.getValues(); | |
| var comboValues = []; // <-- cheddar will go here | |
| // in this example we are interested in column 0 and discarding row 1 (the titles) |
This file contains hidden or 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
| USE ExampleDB; | |
| GO | |
| -- Truncate the log by changing the database recovery model to SIMPLE. | |
| ALTER DATABASE ExampleDB | |
| SET RECOVERY SIMPLE; | |
| GO | |
| -- Shrink the truncated log file to 1 MB. | |
| DBCC SHRINKFILE (ExampleDB_Log, 1); |
This file contains hidden or 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
| func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! { | |
| var cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(kCellIdentifier) as UITableViewCell | |
| if cell == nil { | |
| cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: kCellIdentifier) | |
| } | |
| var rowData: NSDictionary = self.tableData[indexPath.row] as NSDictionary | |
| // Add a check to make sure this exists |
This file contains hidden or 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
| __author__ = 'gilcreque' | |
| MAX_LINE_LEN = 300 | |
| UltraEdit.activeDocument.dosToUnix | |
| UltraEdit.activeDocument.selectAll() | |
| text_file = UltraEdit.activeDocument.selection | |
| text_array = text_file.split("\n") | |
| file_len = text_array.length | |
| current_line_len = 0 |
This file contains hidden or 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
| # See what files changed between branches | |
| git diff --name-status master..branch |
This file contains hidden or 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 | |
| /** | |
| * Implements hook_process_html | |
| */ | |
| function templatenamespace_process_html(&$vars) { | |
| $search = array('scripts' => 'src=', 'styles' => 'href=', 'styles' => '@import\surl\('); | |
| foreach ( $search as $var => $word ) { | |
| if ( !empty($vars[$var]) ) { |
This file contains hidden or 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
| {% if site.github_user %} | |
| <section> | |
| <h2>GitHub Activity</h2> | |
| <ul id="gh_events"> | |
| <li class="loading">Status updating...</li> | |
| </ul> | |
| {% if site.github_show_profile_link %} | |
| <a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on GitHub | |
| {% endif %} | |
| <script type="text/javascript"> |
This file contains hidden or 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
| join( | |
| forEach( | |
| value.trim().split(" "), | |
| v, | |
| v.substring(0,1).toUppercase() + v.substring(1) | |
| ) | |
| ," ") |
This file contains hidden or 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
| Attribute VB_Name = "Subject" | |
| Sub AppendTags() | |
| On Error Resume Next | |
| Dim MsgColl As Object | |
| Dim msg As Outlook.mailItem | |
| Dim objNS As Outlook.NameSpace | |
| Dim i As Long | |
| Dim subjectname As String | |
| Select Case TypeName(Application.ActiveWindow) |