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
| " SOURCE: http://amix.dk/vim/vimrc.html | |
| " Use case insensitive search, except when using capital letters | |
| set ignorecase | |
| set smartcase | |
| " Highlight search results | |
| set hlsearch | |
| " Makes search act like search in modern browsers |
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
| # -*- coding: utf-8 -*- | |
| import os | |
| import re | |
| import codecs | |
| # | |
| # This code can match a unicode persian/arabic word in a file | |
| # That is how far it is tested for | |
| # |
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
| # -*- coding: utf-8 -*- | |
| import os | |
| import re | |
| import codecs | |
| fo = open("allHashtags.tsv", "w") | |
| fpath = 'tail.tsv' | |
| source = codecs.open(fpath,'rb',encoding='utf-8') | |
| pattern = re.compile("#\w+", re.UNICODE) |
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
| import urllib | |
| import pycurl | |
| import simplejson as json | |
| from StringIO import StringIO | |
| class GetIncidents: | |
| def __init__(self,subdomain,token,fields,sortField,order,limit): | |
| ''' initiate the information needed for the api call''' | |
| self.url = "https://" + subdomain + ".pagerduty.com/api/v1/incidents" |