Skip to content

Instantly share code, notes, and snippets.

Nevo Segal nevosegal

Block or report user

Report or block nevosegal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nevosegal / AppDelegate.swift
Created Oct 8, 2019
Simple way to reproduce iOS bug - connecting Bluetooth Headphones while app is backgrounded.
View AppDelegate.swift
// AppDelegate.swift
// ios-bluetooth-bug
// Created by Nevo Segal on 08/10/2019.
import UIKit
import AVFoundation
nevosegal / levenshteinDistance.cpp
Last active Jun 18, 2018
Levenshtein distance
View levenshteinDistance.cpp
#include <iostream>
using namespace std;
int getMinValueInArray(int *inputArray, int arrayLength) {
int minIndex = 0;
for(int i = 1; i < arrayLength; i++) {
if (inputArray[i] < inputArray[minIndex]) {
minIndex = i;
View gist:9483e1ea7fb7036d295e70a40242d7bb
var bufferSize = 4096;
var whiteNoise = ac.createScriptProcessor(bufferSize, 1, 1);
var m = ac.createScriptProcessor(bufferSize,1,1);
whiteNoise.onaudioprocess = function(e) {
var output = e.outputBuffer.getChannelData(0);
for (var i = 0; i < bufferSize; i++) {
output[i] = Math.random() * 2 - 1;
nevosegal / tools.json
Created Aug 20, 2015
list of tools for journalist toolbox testing
View tools.json
"name": "R",
"developer": "R Core Team",
"description": "R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platformss, Windows and MacOS.",
"version": "3.2.1",
"price": 0,
"free" : true,
"upvotes": [],
"downvotes": [],
"home_url": "",
nevosegal / HTML
Created Jun 11, 2013
Simple google maps implementation including a search field Just add API key and Default address.
<!DOCTYPE html>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="style.css">
<div class="textBox">
<input type="text" id="address" value="">
<input type="button" value="Search" onClick="codeAddress()"></div>
You can’t perform that action at this time.