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
export async function setupI18n(config: { | |
traduora: { | |
host: string, | |
projectId: string, | |
clientId: string, | |
clientSecret: string | |
} | |
}) { | |
const token = await getTraduoraToken(config.traduora); |
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
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/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') \ |
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
/*************************************************************/ | |
// NumeroALetras | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2015 Luis Alfredo Chee | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
INSERT INTO poi(name,afiliation,phone,email,type) VALUES | |
('AFARA MACIEL, JUAN EUDES','A.N.R.','414-5248',NULL,'SENADOR'), | |
('ALVARENGA DE ORTEGA, HERMELINDA','P.L.R.A','414-5156','[email protected]','SENADOR'), | |
('AMARILLA GUIRLAND, DIONISIO OSWALDO','P.L.R.A','414-5135','[email protected]','SENADOR'), | |
('APURIL SANTIVIAGO, GILBERTO ANTONIO','PPH','414-5082',NULL,'SENADOR'), | |
('ARÉVALO FERNÁNDEZ, MARIO MARTÍN','A.N.R.','414-5215','[email protected]','SENADOR'), | |
('ARRÚA DE DOLINSKY, GEORGIA MARÍA','PPQ','414-5049',NULL,'SENADOR'), | |
('BACCHETTA CHIRIANI, ENRIQUE FAUSTO','A.N.R.','414-5288','[email protected]','SENADOR'), | |
('BAJAC DE PENNER, MARÍA EUGENIA BEATRÍZ','P.L.R.A','414-5146',NULL,'SENADOR'), | |
('BARRIOS FERNÁNDEZ, ANTONIO CARLOS','A.N.R.','414-5238',NULL,'SENADOR'), |
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
#!/bin/bash | |
# Usage: | |
# | |
# bash scrap.bash 100000 200000 | |
START=$1 | |
END=$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
import com.github.fluent.hibernate.cfg.scanner.EntityScanner; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.boot.Metadata; | |
import org.hibernate.boot.MetadataSources; | |
import org.hibernate.boot.registry.StandardServiceRegistryBuilder; | |
import org.hibernate.cfg.AvailableSettings; | |
import org.hibernate.cfg.Configuration; | |
import org.hibernate.dialect.PostgreSQL94Dialect; |
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 class MockLoading { | |
public visible: boolean; | |
constructor(props: any) { | |
Object.assign(this, props); | |
this.visible = false; | |
} | |
present() { | |
this.visible = true; |
NewerOlder