Skip to content

Instantly share code, notes, and snippets.

View LiorZ's full-sized avatar

LiorZ LiorZ

View GitHub Profile
@LiorZ
LiorZ / gist:8144801
Created December 27, 2013 09:58
An updated ConnectPlugin for phonegap-facebook-plugin (Android)
package org.apache.cordova.facebook;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Iterator;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.PluginResult;
import org.json.JSONArray;
@LiorZ
LiorZ / kmeans.py
Last active September 25, 2023 01:22
KMeans clustering python script for biological sequences
#!/usr/bin/python
### Created by Lior Zimmerman (http://www.github.com/LiorZ) ###
### Distributed under MIT License (http://opensource.org/licenses/MIT) ###
import sys, getopt
from Bio import SeqIO,pairwise2
import Bio.SubsMat.MatrixInfo as matrices
import sklearn.cluster as cluster
@LiorZ
LiorZ / sound_recorder.py
Created August 7, 2016 15:50 — forked from mabdrabo/sound_recorder.py
Simple script to record sound from the microphone, dependencies: easy_install pyaudio
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "file.wav"
@LiorZ
LiorZ / RTPCR.ipynb
Created March 17, 2020 21:33
RT-PCR Pooling algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.