__ _
o'')}____//
`_/ )
(_(_/-(_/
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
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 750 500" preserveAspectRatio="xMidYMax slice"> | |
| <defs> | |
| <!-- Scene 1 Gradient --> | |
| <linearGradient id="grad1" x1="-154.32" y1="263.27" x2="-154.32" y2="374.3" | |
| gradientTransform="matrix(-1, 0, 0, 1.36, 231.36, -100.14)" gradientUnits="userSpaceOnUse"> | |
| <stop offset="0.07" stop-color="#9c536b" /> | |
| <stop offset="0.98" stop-color="#d98981" /> | |
| </linearGradient> | |
| <radialGradient id="bg_grad" cx="375" cy="-35" r="318.69" gradientUnits="userSpaceOnUse"> | |
| <stop offset="0.1" stop-color="#F5C54E" id="sun" /> |
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
| /*-------- Here's how your Gists render in #newtwitter's details pane --------*/ | |
| twttr.mediaType('twttr.media.types.Gist') | |
| .url('http://gist.github.com') | |
| .matcher(/\b(?:https?\:\/\/)?gist\.github\.com\/(\S+)/g) | |
| .icon('generic') |
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
| <template> | |
| <div id="app"> | |
| <!-- <img src="./assets/logo.png"> | |
| <HelloWorld msg="Welcome to Your Vue.js App"/> --> | |
| <div class="reveal"> | |
| <div class="slides"> | |
| <section>Single Horizontal Slide</section> | |
| <section> | |
| <section>Vertical Slide 1</section> | |
| <section>Vertical Slide 2</section> |
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
| // imports from date-fns https://github.com/date-fns/date-fns | |
| const isWeekend = require('date-fns/is_weekend'); | |
| const endOfMonth = require('date-fns/end_of_month'); | |
| const startOfDay = require('date-fns/start_of_day'); | |
| const startOfMonth = require('date-fns/start_of_month'); | |
| const addDays = require('date-fns/add_days'); | |
| const subDays = require('date-fns/sub_days'); | |
| // test day | |
| const now = new Date(2018,1,28); |
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
| # FontInstaller (by @olemoritz) | |
| # This script installs a custom TTF font on iOS (system-wide). | |
| # It can be used in one of two ways: | |
| # 1. Simply run it in Pythonista, you'll be prompted for the URL of the font | |
| # you'd like to install (if there's a URL in the clipboard, it'll be used by default) | |
| # 2. Use it as an 'Open in...' handler, i.e. select this file in Pythonista's 'Open in... | |
| # menu' setting. This way, you can simply download a ttf file in Safari and open it in |
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
| # Quick workaround for photos module (Pythonista) not downloading photos from iCloud | |
| import photos | |
| from objc_util import ObjCClass, ObjCInstance, ObjCBlock | |
| def download_cloud_asset(asset): | |
| PHImageManager = ObjCClass('PHImageManager') | |
| PHImageRequestOptions = ObjCClass('PHImageRequestOptions') | |
| ph_asset = ObjCInstance(asset) | |
| ph_image_mgr = PHImageManager.defaultManager() |
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
| # `motion` module from Pythonista | |
| # This is missing in the current App Store versions (in Pythonista 3.x, it's only missing in Python 2 mode). | |
| # As a temporary workaround, you can put this file in the "site-packages" folder (under "Modules" or "Modules & Templates"). | |
| import _motion | |
| shared_manager = _motion.MotionManager() | |
| def start_updates(): | |
| shared_manager.start() |
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 ui | |
| import os | |
| from objc_util import ObjCInstance, ObjCClass | |
| from operator import attrgetter | |
| import time | |
| import threading | |
| import functools | |
| import ftplib | |
| import re |
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 | |
| from objc_util import * | |
| ObjCClass('NSBundle').bundleWithPath_('/System/Library/Frameworks/LocalAuthentication.framework').load() | |
| context = ObjCClass('LAContext').alloc().init() | |
| policy = 1 #put 1 if you want to auth with password, 2 with passcode | |
| reason = 'We need you fingerprint to ste...ehm... to log you in' | |
| def funct(_cmd,success,error): | |
| if success: |
OlderNewer