https://bbs.archlinux.org/viewtopic.php?pid=1482240#p1482240
sudo patch /usr/share/wicd/curses/wicd-curses.py < /tmp/wicd.py
https://bbs.archlinux.org/viewtopic.php?pid=1482240#p1482240
sudo patch /usr/share/wicd/curses/wicd-curses.py < /tmp/wicd.py
聲明: 此並非爲官方聲明。我並非爲 io.js 官方代表,如果有任何問題,歡迎在 node-forward
一起討論
# Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior! | |
# disable the default submodule logic | |
git: | |
submodules: false | |
# use sed to replace the SSH URL with the public URL, then init and update submodules | |
before_install: | |
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
- git submodule update --init --recursive |
#!/usr/bin/env python3 | |
import lxml.html | |
import argparse | |
class RSS: | |
def __init__(self, url): | |
assert(url != "") | |
self.url = url |
""" | |
Requirements: | |
* A Wordpress Blog | |
* Ghost export file (json). | |
* Python Packages: python-wordpress-xmlrpc | |
>>> pip install python-wordpress-xmlrpc | |
WARNING: |
#!/usr/bin/env python | |
def main(): | |
n = input('Find the next prime number greater great than: ') | |
print find_next_prime(n+1) | |
def find_next_prime(n): | |
return find_prime_in_range(n, 2*n) | |
def find_prime_in_range(a, b): |
docker rmi $(docker images -q -f dangling=true) |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
utc_to_local.py | |
Example of converting UTC to local time using python-dateutil. | |
https://pypi.python.org/pypi/python-dateutil | |
""" | |
from datetime import datetime |
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |