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
foutput() { | |
# usage: | |
# foutput # to open picker | |
# foutput speakers # to select speakers | |
device="$(SwitchAudioSource -a -t output |\ | |
fzf-tmux --height=8 --cycle --no-mouse --no-multi --query=$1 -1 |\ | |
cut -f1 -d'(' | xargs)" | |
SwitchAudioSource -s "$device" | |
} |
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
using UnityEngine; | |
using System.Collections; | |
public static class Vibration | |
{ | |
#if UNITY_ANDROID && !UNITY_EDITOR | |
public static AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
public static AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"); | |
public static AndroidJavaObject vibrator = currentActivity.Call<AndroidJavaObject>("getSystemService", "vibrator"); |
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
export async function setupI18n(config: { | |
traduora: { | |
host: string, | |
projectId: string, | |
clientId: string, | |
clientSecret: string | |
} | |
}) { | |
const token = await getTraduoraToken(config.traduora); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/python | |
import sys | |
import xml.etree.cElementTree as ET | |
import string | |
import random | |
import socket | |
from datetime import datetime | |
if len(sys.argv) < 2: |
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
{... | |
"scripts": { | |
"ng": "ng", | |
"start": "ng serve --proxy-config proxy.conf.json", | |
"clean": "rm -rf dist", | |
"build-prod": "yarn install && ng build -prod", | |
"build-dev": "yarn install && ng build -dev", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e" |
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
import React, { Component } from 'react'; | |
class EmbeddedGist extends Component { | |
constructor(props) { | |
super(props); | |
this.gist = props.gist; | |
this.file = props.file; | |
this.stylesheetAdded = false; | |
this.state = { |
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
function addUrlToClasspath(pathName) { | |
var/*java.net.URLClassLoader*/ | |
sysloader = /*(java.net.URLClassLoader) */ java.lang.ClassLoader.getSystemClassLoader(); | |
var/*java.lang.Class*/ sysclass = java.net.URLClassLoader.class; | |
var ClassArray = Java.type("java.lang.Class[]"); | |
var parameters = new ClassArray(1); | |
parameters[0] = java.net.URL.class; | |
var/*java.lang.reflect.Method*/ method = sysclass.getDeclaredMethod("addURL", parameters); | |
method.setAccessible(true); | |
var ObjectArray = Java.type("java.lang.Object[]"); |
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/env python | |
# -*- coding: utf-8 -*- | |
# Dependencias: | |
# - beautifulsoup4 | |
import sys | |
import time | |
import urllib | |
import urllib.request |
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 sys | |
import re | |
def get_file_data(file_name): | |
cleaned = file_name \ | |
.replace('PERDOMO2016_1', 'PERDOMO_2016_1') \ | |
.replace('SOSARIELLA_216', 'SOSARIELLA_2016') \ | |
.replace('221.035', '221035') \ |
NewerOlder