Developed on Microsoft Visual C++ 2010 Express (http://go.microsoft.com/?linkid=9709949)
Specific settings:
- Right click Project -> Properties
- Linker -> Input -> Ignore All Default Libraries -> No
| class database(object): | |
| def __init__(self, env): | |
| if env == 'test': | |
| self.name = str('test mysql 1') | |
| self.host = str('1.1.1.1') | |
| self.port = str('11') | |
| self.login = str('testlogin') | |
| self.password = str('testpass') |
Developed on Microsoft Visual C++ 2010 Express (http://go.microsoft.com/?linkid=9709949)
Specific settings:
| server { | |
| listen 80; | |
| server_name sub1.domain.com; | |
| location / { | |
| proxy_pass http://localhost:8008; | |
| } | |
| } |
| language: python | |
| python: | |
| - "3.4" | |
| install: "pip install -r requirements.txt" | |
| before_script: | |
| - "rm /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/admin.py" | |
| - "rm /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/models.py" | |
| - "rm /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/migrations/0*.*" |
Copied from here
Save as .py , put in (Preferences > Browse Packages > User) and restart Sublime
| Sub CopyColumnsToOtherWorkbook() | |
| Dim srcBook As Workbook | |
| Dim srcSheet As Worksheet | |
| Dim destSheet As Worksheet | |
| Set srcBook = Workbooks.Open("C:\vba\source.xlsm", ReadOnly = True) | |
| Set srcSheet = srcBook.Worksheets("SheetName") | |
| Set destSheet = ThisWorkbook.Worksheets("SheetName") |
| class Parent(object): | |
| def __init__(self, param1, param2): | |
| self.param1 = param1 | |
| self.param2 = param2 | |
| def main(self): | |
| print(self.name) | |
| # Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM | |
| Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll” | |
| Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” | |
| Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.WorkflowServices.dll” | |
| # Specify tenant admin and site URL | |
| $SiteUrl = "mysiteurl" | |
| $ListName = "mylistname" | |
| $UserName = "myusername" | |
| $SecurePassword = ConvertTo-SecureString "mypassword" -AsPlainText -Force |
| # Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM | |
| Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll” | |
| Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” | |
| Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.WorkflowServices.dll” | |
| # Specify tenant admin and site URL | |
| $SiteUrl = "mysiteurl" | |
| $ListName = "mylistname" | |
| $UserName = "myusername" | |
| $SecurePassword = ConvertTo-SecureString "mypassword" -AsPlainText -Force |