Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Programando!!

Edwin Rodríguez edwrodrig

🏠
Programando!!
  • Instituto Milenio de Oceanografía
  • Concepción, Chile
View GitHub Profile
@edwrodrig
edwrodrig / time.md
Last active Feb 28, 2021
unity_quick_reference
View time.md

TIMING

  • Orden de ejecucion link
  • WairForFixedUpdate link
  • All delta variables link
    • Time.fixedDeltaTime : siempre es igual. Marca el tiempo del intervalo de la fisica
    • Time.fixedTime : es el tiempo en que ocurrio el últime fixedTime
    • Time.timeSinceLevelLoad : el el tiempo desde que empezó el nivel
    • Time.time : es el tiempo absolute
@edwrodrig
edwrodrig / gdc.php
Created Jan 13, 2021
GDC retrieval
View gdc.php
<?php
/**
* @param $id
* @return mixed
* https://github.com/NCI-GDC/portal-ui/blob/92f0dfa17838746093c3c011141d08391016da91/data/schema.graphql
* https://docs.gdc.cancer.gov/API/Users_Guide/Search_and_Retrieval/#cases-endpoint
*/
function get_file_by_id($id) {
$query = [
View script.go
package main
import (
"fmt"
)
func main() {
values := []string{"logventas", "logtrabajadores",
"fomento",
@edwrodrig
edwrodrig / blasn.md
Last active Nov 11, 2020
comandos para comparar
View blasn.md

Crear base de datos

  • makeblastdb -in db.fasta -out dbname -dbtype nuc
  • makeblastdb -in db.fasta -out dbname -dbtype proc
  • diamond makedb --in db.fasta -d dbname
  • lambda2 mkindexn -d db.fasta -i dbname
  • lambda2 mkindexp -d db.fasta -i dbname

Query

  • blastn -db dbname -query query.fasta -out result.txt -max_target_seqs 1 -num_threads 40 -outfmt 6
View phpunit.xml.dist
<?xml version="1.0" encoding="utf-8" ?>
<phpunit bootstrap="./vendor/autoload.php">
<testsuites>
<testsuite name="main">
<directory>./test</directory>
<directory>./modules/core/test</directory>
<exclude>./test/local</exclude>
<exclude>./modules/core/test/local</exclude>
</testsuite>
</testsuites>
@edwrodrig
edwrodrig / links.md
Last active Aug 22, 2020
Links útiles
View links.md
@edwrodrig
edwrodrig / infraestructura_quick_reference.md
Last active Mar 25, 2021
Tips para mantención de infraestructura
View infraestructura_quick_reference.md
@edwrodrig
edwrodrig / template_de_proyectos.md
Last active Jun 9, 2020
Mis templates de proyectos
View template_de_proyectos.md

Template de proyectos

Aplicación web basada en composer

GitHub License Build Status codecov.io Code Coverage Code Climate

@edwrodrig
edwrodrig / v2.json
Last active Mar 25, 2020
Json exercise
View v2.json
{
"folder": {
"url": "https://drive.google.com/drive/folders/1Fal2qH8meuQ7vKzUVwv5W1biQ2BAYBz2?usp=sharing",
"mind_prints": [
{
"code": "B1",
"title": "PV Recicla Chile",
"date": "2019-12-10",
"time" : {
"start" : "16:37",
View chart_to_svg.r
data = read.table("/home/edwin/edwin/filter.txt", header=TRUE, sep="\t")
dim(data)
library(RColorBrewer)
qual_col_pals = brewer.pal.info[brewer.pal.info$category == 'qual',]
col_vector = unlist(mapply(brewer.pal, qual_col_pals$maxcolors, rownames(qual_col_pals)))
svg(filename="Std_SVG.svg",
width=20,
height=8,
pointsize=12)
barplot(as.matrix(data), col=col_vector, las=2, cex.axis = 0.5, cex.names = 0.5)