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__ = 'kye.hohenberger' | |
| from urllib2 import urlopen | |
| from django.utils import simplejson as json | |
| import datetime | |
| from ragedigest.models import Comic, Queue | |
| import reddit | |
| import sys | |
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
| { | |
| "sublimelinter_disable": ["css"], | |
| "sublimelinter_syntax_map": | |
| { | |
| "Javascript YUI": "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
| function _setActivePageStyle(activeLinkEl) { | |
| //If the active link is not an 'a' element, find it and use it. | |
| if(activeLinkEl.tagName !== 'A') { | |
| activeLinkEl = SELECT.query('a', activeLinkEl, true); | |
| } | |
| //show hidden active element by expanding it's parent category | |
| if(activeLinkEl.parentNode.getAttribute('role') === 'page') { | |
| var parentCategory = DOM.getAncestorByClassName(activeLinkEl, 'category'); |
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
Show hidden characters
| /* | |
| SublimeLinter default settings | |
| */ | |
| { | |
| /* | |
| Sets the mode in which SublimeLinter runs: | |
| true - Linting occurs in the background as you type (the default). | |
| false - Linting only occurs when you initiate it. | |
| "load-save" - Linting occurs only when a file is loaded and saved. |
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
| /^.*(?=(?:.*?[0-9]){2})[A-Za-z0-9#,.\-_]{8,15}$/ |
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
| Title: Coheed and Cambria cover Gotye's "Somebody That I Used To Know" in the most epic of fashions | |
| Artist: Coheed and Cambria cover Gotyes "Somebody That I Used To Know | |
| Song Title: in the most epic of fashions | |
| Url : http://www.youtube.com/watch?v=WgLaJDLYeZs&feature=related | |
| Title: Neil Young - Heart of Gold | |
| Artist: Neil Young | |
| Song Title: Heart of Gold | |
| Url : http://www.youtube.com/watch?v=Eh44QPT1mPE |
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
| var _s = require('underscore.string'); | |
| var spotify = require('spotifyapi'); | |
| exports.getSpotifyLink = function(artist, title) { | |
| var artist = artist; | |
| var title = title; | |
| var results = spotify.search({ | |
| method: 'track', | |
| q: title, |
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 praw | |
| from pprint import pprint | |
| r = praw.Reddit(user_agent='Reddit Music Bot') | |
| submissions = r.get_subreddit('listentothis').get_top(limit=10) | |
| for submission in submissions: | |
| print '\n%s\n' % submission | |
| pprint(vars(submission)) |
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
| [ | |
| '__class__', | |
| '__delattr__', | |
| '__dict__', | |
| '__doc__', | |
| '__eq__', | |
| '__format__', | |
| '__getattr__', | |
| '__getattribute__', | |
| '__hash__', |
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
| #cpanel \{\W.*\W.*\} | |
| Where selector is the css selector you want to find. |