Skip to content

Instantly share code, notes, and snippets.

View siddht4's full-sized avatar
💭
I may be slow to respond.

siddht4

💭
I may be slow to respond.
View GitHub Profile
@siddht4
siddht4 / main.js
Created March 23, 2017 12:26 — forked from aeris/main.js
DI.fm & Sky.fm
function Station(name, url, description, image) {
this.name = name;
this.url = url;
this.description = description;
this.image = image;
}
var channels = {
'di': {
'name': 'DI.fm',
@siddht4
siddht4 / index.html
Created April 20, 2017 10:21 — forked from crofty/index.html
A example of using Google Map tiles with the Leaflet mapping library - http://matchingnotes.com/using-google-map-tiles-with-leaflet
<!DOCTYPE html>
<html>
<head>
<title>Leaflet</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
<script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script>
</head>
<body>
import os
_content =dir(os)
for item in _content:
print(item)
import os,sys
_msg='hello '
os.system('notify-send '+_msg)
import subprocess
_msg= 'hello'
_pipe_line = subprocess.Popen(["/bin/bash", "-c", _msg], stdout=subprocess.PIPE)
from gi.require_version('Notify', '0.7') import Notify
Notify.init("App Name")
Notify.Notification.new("Hi").show()
@siddht4
siddht4 / export_multi_repo_issues_to_csv.py
Created July 30, 2017 10:46 — forked from Kebiled/export_multi_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a list of repositories to individual CSV files
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
Derived from https://gist.github.com/Billy-/96b16b7682a19a562b277c1ab52547a5
"""
import csv
import requests
import json
@siddht4
siddht4 / export_repo_issues_to_csv.py
Created July 30, 2017 10:46 — forked from marcelkornblum/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
This is strongly based on https://gist.github.com/unbracketed/3380407;
thanks to @unbracketed and the various commenters on the page.
I've mainly cleaned up the code into basic methods, and included the
various suggestions in the comments. Hope this is useful to someone.
Make sure you have `requests` and `csv` installed via pip then run it:
`python export_gh_issues_to_csv.py`
@siddht4
siddht4 / github_issues_to_csv.py
Created July 30, 2017 10:46 — forked from patrickfuller/github_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports issues from a list of repositories to individual csv files.
Uses basic authentication (Github username + password) to retrieve issues
from a repository that username has access to. Supports Github API v3.
Forked from: unbracketed/export_repo_issues_to_csv.py
"""
import argparse
import csv
from getpass import getpass
import requests
from __future__ import unicode_literals
import os,json,sys
if __name__ == '__main__' and __package__ is None:
from os import sys, path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
import youtube_dl
_a_=0
_faa='a'+'.json'
fo = open(_faa, "w")
class MyLogger(object):