This file contains 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
@staticmethod | |
def songs(where_clause): | |
query = ''' | |
SELECT DISTINCT | |
rdf:type(?song) | |
tracker:id(?song) AS id | |
nie:url(?song) AS url | |
nie:title(?song) AS title | |
nmm:artistName(nmm:performer(?song)) AS artist | |
nie:title(nmm:musicAlbum(?song)) AS album |
This file contains 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 TrackerWrapper: | |
class __TrackerWrapper: | |
def __init__(self): | |
self.tracker = Tracker.SparqlConnection.get(None) | |
def __str__(self): | |
return repr(self) | |
instance = None | |
def __init__(self): | |
if not TrackerWrapper.instance: | |
TrackerWrapper.instance = TrackerWrapper.__TrackerWrapper() |
This file contains 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
(repeated_code_finder)repeated_code_finder [master *] $ brew install pkg-config libffi | |
Warning: pkg-config-0.28 already installed | |
Warning: libffi-3.0.13 already installed | |
(repeated_code_finder)repeated_code_finder [master *] $ export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/ | |
(repeated_code_finder)repeated_code_finder [master *] $ pip install bcrypt | |
Downloading/unpacking bcrypt | |
Downloading bcrypt-1.1.0.tar.gz | |
Running setup.py (path:/Users/maiamccormick/code/repeated_code_finder/build/bcrypt/setup.py) egg_info for package bcrypt | |
Downloading/unpacking cffi>=0.8 (from bcrypt) |
This file contains 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
(repeated_code_finder)repeated_code_finder [master] $ pip install cffi | |
Downloading/unpacking cffi | |
Downloading cffi-0.8.6.tar.gz (196kB): 196kB downloaded | |
Running setup.py (path:/Users/maiamccormick/code/repeated_code_finder/build/cffi/setup.py) egg_info for package cffi | |
Downloading/unpacking pycparser (from cffi) | |
Downloading pycparser-2.10.tar.gz (206kB): 206kB downloaded | |
Running setup.py (path:/Users/maiamccormick/code/repeated_code_finder/build/pycparser/setup.py) egg_info for package pycparser | |
Installing collected packages: cffi, pycparser |
This file contains 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
*Name:* Maia Remez McCormick | |
*E-mail address:* maia.mcc@gmail.com | |
*IRC Nick:* maiamcc | |
*Web Page / Blog / Microblog (e.g. Twitter) / Portfolio:* [maiamcc.github.io/](//maiamcc.github.io/) | |
*Location:* New York City |
This file contains 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
*Name:* Maia Remez McCormick | |
*E-mail address:* maia.mcc@gmail.com | |
*IRC Nick:* maiamcc | |
*Web Page / Blog / Microblog (e.g. Twitter) / Portfolio:* [maiamcc.github.io/](//maiamcc.github.io/) | |
*Location:* New York City |
This file contains 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
### IN WINDOW.PY | |
@log | |
def dismiss_previous_notification(self): | |
try: | |
self.notification.dismiss() | |
except AttributeError: | |
pass | |
@log | |
def _init_playlist_removal_notification(self): |
This file contains 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
# run addr. through gmaps api. for all results: | |
# should I have multiple filters for, say, US, NY State, Brooklyn/Manhattan? | |
# or just filter for manhattan? To write multiple filter funcs: | |
# def filter_address_by(attr, val): | |
# def filter_func(addr_obj): | |
# for component in addr_obj["address_components"]: | |
# if attr in component["types"] and component["long_name"] == val: | |
# return True | |
# return False | |
# return filter_func |
This file contains 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
.video_gallery { | |
text-align: center; | |
} | |
.video_gallery li { | |
margin: 10px 0 10px 0; | |
} | |
.video-container { | |
position: relative; |
This file contains 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
Maias-MacBook-Pro:vendor maiamccormick$ npm install | |
npm WARN package.json spring-vfe@0.0.1 No description | |
npm WARN package.json spring-vfe@0.0.1 No repository field. | |
npm WARN package.json spring-vfe@0.0.1 No README data | |
npm WARN locking Error: EACCES, open '/Users/maiamccormick/.npm/_locks/gulp-dc71b0d6e7318c29.lock' | |
npm WARN locking at Error (native) | |
npm WARN locking /Users/maiamccormick/.npm/_locks/gulp-dc71b0d6e7318c29.lock failed { [Error: EACCES, open '/Users/maiamccormick/.npm/_locks/gulp-dc71b0d6e7318c29.lock'] | |
npm WARN locking errno: -13, | |
npm WARN locking code: 'EACCES', | |
npm WARN locking path: '/Users/maiamccormick/.npm/_locks/gulp-dc71b0d6e7318c29.lock' } |
OlderNewer