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
private void driveSignIn() { | |
List<Scope> scopeList = new ArrayList<>(); | |
scopeList.add(new Scope(DriveScopes.SCOPE_DRIVE)); | |
scopeList.add(new Scope(DriveScopes.SCOPE_DRIVE_APPDATA)); | |
scopeList.add(new Scope(DriveScopes.SCOPE_DRIVE_FILE)); | |
scopeList.add(new Scope(DriveScopes.SCOPE_DRIVE_METADATA)); | |
scopeList.add(new Scope(DriveScopes.SCOPE_DRIVE_METADATA_READONLY)); | |
scopeList.add(new Scope(DriveScopes.SCOPE_DRIVE_READONLY)); | |
scopeList.add(HuaweiIdAuthAPIManager.HUAWEIID_BASE_SCOPE); |
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
# -*- coding: latin-1 -*- | |
# Copy this python script under ~/.local/share/nautilus-python/extensions and restart nautilus. | |
# You may need to create nautilus-python and extensions folders if they do not exist. – | |
import os | |
import gi | |
gi.require_version('Nautilus', '3.0') | |
from gi.repository import Nautilus, GObject |
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
#!/usr/bin/python3 | |
import subprocess | |
import pyudev | |
import time | |
deceleration = -0.3 | |
# bionic = 'libinput Accel Speed' [-1,1] | |
# xenial = 'Device Accel Constant Deceleration' | |
context = pyudev.Context() |
NewerOlder