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 {Injectable} from '@angular/core'; | |
export type ScriptsNames = 'pdfMake' | 'vfsFonts' | |
interface Scripts { | |
name: ScriptsNames; | |
src: string; | |
} | |
export const ScriptStore: Scripts[] = [ |
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 {OnDestroy, OnInit} from '@angular/core'; | |
import {BehaviorSubject, Observable, Subject, Subscription} from 'rxjs'; | |
import {filter, takeUntil} from 'rxjs/operators'; | |
export class GenericController implements OnDestroy, OnInit { | |
private unsubscribe$ = new Subject<void>(); | |
isLoadingAsync: Observable<boolean>; | |
/* Is loading */ |
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
mkdir ~/Softwares/ -p | |
cd ~/Softwares/ | |
echo "Instalando Softwares Basicos" | |
sudo apt install unzip unp unrar python-pip python3-pip net-tools -y | |
echo "Instalando Visual Studio Code" | |
sudo apt update | |
sudo apt install curl |
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
Chiron... | |
Prepare... | |
Getting conceptual workflow... | |
Getting workflow execution... | |
Open... | |
Execute... | |
Rodando esquema de replicação | |
Executando: 2018-01-28T01:02:18.448 : %=WFDIR%/template_mafft | |
Executando: 2018-01-28T01:02:18.448 : %=WFDIR%/template_mafft | |
Executando: 2018-01-28T01:02:18.479 : %=WFDIR%/template_mafft |
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
package br.uff.spark.utils | |
import java.util.concurrent.TimeUnit | |
import util.control.Breaks._ | |
import br.uff.spark.DataSource | |
import com.datastax.driver.core.{BatchStatement, Statement} | |
class SimpleThreadPool(name: String) extends Thread(name) { | |
val queue = new java.util.concurrent.ConcurrentLinkedQueue[() => Statement]() |
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
package br.com.dao.GenericDAO; | |
import br.com.dao.CriarConecao; | |
import br.com.hibernate.HibernateUtil; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.ArrayList; | |
import java.util.List; |
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
#define _GNU_SOURCE | |
#include <dlfcn.h> | |
#define _FCNTL_H | |
#include <stdio.h> | |
#include <stdlib.h> | |
int (*_open)(const char *name, int flags, ...); | |
int (*_open64)(const char *name, int flags, ...); | |
void __attribute__ ((constructor)) setup(void) { |
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
select | |
ewf.tagexec, | |
evocount.tree_reference, | |
evocount.frequency | |
from | |
( | |
select | |
ewf.ewkfid, | |
tree.tree_reference, | |
tree.frequency |
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
<datasource jta="true" jndi-name="java:/Lab" pool-name="LabDS" enabled="true" use-ccm="true"> | |
<connection-url>jdbc:postgresql://localhost:5432/lab</connection-url> | |
<driver-class>org.postgresql.Driver</driver-class> | |
<driver>postgresql-9.4-1201.jdbc41.jar</driver> | |
<pool> | |
<min-pool-size>1</min-pool-size> | |
<initial-pool-size>4</initial-pool-size> | |
<max-pool-size>20</max-pool-size> | |
</pool> | |
<security> |
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
[main] | |
builtInCacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager | |
securityManager.cacheManager = $builtInCacheManager | |
myRealm = br.edu.uft.generic.web.security.SecurityAuth | |
anyroles = br.edu.uft.generic.web.security.AnyRolesAuthorizationFilter | |
shiro.loginUrl = /index.xhtml | |
[urls] | |
/javax.faces.resource/** = anon |