Skip to content

Instantly share code, notes, and snippets.

View Uvacoder's full-sized avatar

uvacoder Uvacoder

View GitHub Profile
@Uvacoder
Uvacoder / VICTOR.md
Created August 16, 2021 17:10 — forked from vpontis/VICTOR.md
me
  __      _
o'')}____//
 `_/      )
 (_(_/-(_/          

lu.ma

@Uvacoder
Uvacoder / index.html
Created August 17, 2021 14:50 — forked from doc22940/index.html
Parallax scroll animation
<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" />
/*-------- 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')
@Uvacoder
Uvacoder / App.vue
Created August 17, 2021 23:48 — forked from bricksroo/App.vue
Reveal.js in Vue
<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>
@Uvacoder
Uvacoder / weekDayEndOccurance.js
Created August 17, 2021 23:49 — forked from bricksroo/weekDayEndOccurance.js
Checking day for weekday or weekend ordinal (ie. first weekend day or third weekday).
// 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);
@Uvacoder
Uvacoder / FontInstaller.py
Created August 18, 2021 00:49 — forked from omz/FontInstaller.py
FontInstaller
# 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
@Uvacoder
Uvacoder / DownloadPhotosFromCloud.py
Created August 18, 2021 00:49 — forked from omz/DownloadPhotosFromCloud.py
DownloadPhotosFromCloud.py
# 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()
@Uvacoder
Uvacoder / motion.py
Created August 18, 2021 00:50 — forked from omz/motion.py
# `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()
@Uvacoder
Uvacoder / File Picker.py
Created August 18, 2021 00:50 — forked from omz/File Picker.py
File Picker.py
# 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
@Uvacoder
Uvacoder / TouchID.py
Created August 18, 2021 00:50 — forked from alessaba/TouchID.py
TouchID.py
# 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: