Skip to content

Instantly share code, notes, and snippets.

View tripitakit's full-sized avatar

Patrick De Marta tripitakit

View GitHub Profile
@tripitakit
tripitakit / barcodes.csv
Created February 7, 2023 14:57 — forked from audy/barcodes.csv
Demultiplex Ion Torrent Reads
1 CTAAGGTAA
2 TAAGGAGAA
3 AAGAGGATT
4 TACCAAGAT
5 CAGAAGGAA
6 CTGCAAGTT
7 TTCGTGATT
8 TTCCGATAA
9 TGAGCGGAA
10 CTGACCGAA
@tripitakit
tripitakit / barcodes.csv
Created February 7, 2023 14:57 — forked from audy/barcodes.csv
Demultiplex Ion Torrent Reads
2 TAAGGAGAA
3 AAGAGGATT
4 TACCAAGAT
5 CAGAAGGAA
6 CTGCAAGTT
7 TTCGTGATT
8 TTCCGATAA
9 TGAGCGGAA
10 CTGACCGAA
import 'dart:convert';
void main() {
String description = "{\"blocks\":[{\"key\":\"1h2pe\",\"text\":\"Delicious, loquats are very low in calories; provide just 47 cal per 100 g, however, rich in insoluble dietary fiber, pectin. Pectin retains moisture in the colon and thus functions as bulk laxative and by this way, it helps to protect the colon mucous membrane by decreasing exposure time to toxic substances as well as binding to cancer causing chemicals in the colon.Pectin has also been shown to reduce blood cholesterol levels by decreasing its re-absorption in the colon by binding bile acids resulting in its excretion from the body.Loquat fruit is an excellent source of vitamin-A (provides about 1528 IU per 100g), and phenolic flvonoid antioxidants such as chlorogenic acid, neo-chlorogenic acid, hydroxybenzoic acid, feruloylquinic acid, protocatechuic acid, epicatechin, coumaric acids and ferulic acid. Ripen fruits have more chlorogenic acid concentrations.Vitamin A maintains integrity of mucus membranes
@tripitakit
tripitakit / P12toPEM.txt
Created September 5, 2018 11:10 — forked from shahdhiren/P12toPEM.txt
Convert P12 file for Push Notification to PEM format
Development Phase:
Step 1: Create Certificate .pem from Certificate .p12
Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
Step 2: Create Key .pem from Key .p12
Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
Step 3: Optional (If you want to remove pass phrase asked in second step)
Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem
@tripitakit
tripitakit / coordinate_comuni_italiani.csv
Last active May 29, 2018 18:00
Lista dei comuni italiani con coordinate di geo-localizzazione (7983 comuni)
Comune latitudine longitudine
Agliè 45.3641546 7.7686265
Airasca 44.9182892 7.4856624
Ala di Stura 45.3113703 7.293252600000001
Albiano d'Ivrea 45.4327781 7.9476302
Alice Superiore 45.459751 7.778170599999999
Almese 45.1173797 7.3950789
Alpette 45.4106335 7.580299800000001
Alpignano 45.0991116 7.516632899999999
Andezeno 45.0367203 7.867391800000001
cachedImageView = function(basedir, uri, obj, attr, cacheage) {
/**
Appcelerator Titanium ImageView /w cache
This function attempts to cache a remote image and then returns it again
when it's requested.
The file is stored in a directory "basedir," this is to try and help
you keep files unique. It's not special or magical, but not dirty either.
@tripitakit
tripitakit / recursiveDownload.js
Last active December 29, 2015 03:09
recursive double download example
var button1 = Ti.UI.createButton({
top:"10%",
title: "Get Files"
});
$.index.add(button1);
button1.addEventListener('click', getfiles);
function getfiles(){
Ti.API.info('get files was pushed');
@tripitakit
tripitakit / Ti-LabelBender.js
Last active December 28, 2015 15:59
Label Bender for Appcelerator Titanium. A proof of concept experiment for a factory function(string, angle) returning a view with the single char labels composed along an arc, resulting in a curved label.
/*
* Titanium Label Bender
* Proof of concept for a factory function(string, angle) returning a single view
* with the single char labels composed along an arc, resulting in a curved label
*
* @Copyright (c) 2013 Patrick De Marta
* @License MIT
*/
var win = Titanium.UI.createWindow({
@tripitakit
tripitakit / app.js
Created November 13, 2013 13:30
A test with two commonJS modules in Titanium
var win = Titanium.UI.createWindow({
backgroundColor:'#fff',
layout:"vertical"
});
win.open();
var module = require('myModule');
module.createScanPage(win);
@tripitakit
tripitakit / Ti-tableViews-basic.js
Created November 11, 2013 17:37
Appcelerator Titanium iOS tableView test code which displays four tables with combination of moving/moveable/editing/editable properties to test their effects on row appearance and behavior
var win = Ti.UI.createWindow({
backgroundColor:'#fff',
layout:'vertical',
});
var tableData = [{title:"Alpha"}, {title:"Beta"}, {title:"Gamma"}];
var test1 = Ti.UI.createTableView({
headerTitle: 'moving editing',
moving: true,