Skip to content

Instantly share code, notes, and snippets.

View raulmatei's full-sized avatar
💭
I may be slow to respond.

Raul Matei raulmatei

💭
I may be slow to respond.
View GitHub Profile
@raulmatei
raulmatei / rtlsdr-install.sh
Last active January 27, 2023 12:44 — forked from n8acl/rtlsdr-install.sh
RTL-SDR install bash script
#! /bin/bash
echo "-------------------------------------------"
echo "-- Installing needed packages from repos --"
echo "-------------------------------------------"
sudo apt-get install -y git cmake libffi-dev libssl-dev build-essential libusb-1.0-0-dev pkg-config
echo "------------------------------------------------"
echo "-- Cloning rtl-sdr driver files from osmocom --"
echo "------------------------------------------------"
@raulmatei
raulmatei / supplant.js
Created March 9, 2017 08:33 — forked from pbroschwitz/supplant.js
supplant - Crockford
/**
* supplant() does variable substitution on the string. It scans through the string looking for
* expressions enclosed in { } braces. If an expression is found, use it as a key on the object,
* and if the key has a string value or number value, it is substituted for the bracket expression
* and it repeats.
*
* Written by Douglas Crockford
* http://www.crockford.com/
*/
String.prototype.supplant = function (o) {
[
{
"id": 9,
"title": "Yesterday",
"type": "song",
"meta": {
"url": "https://soundcloud.com/raulmatei/yesterday",
"composer": "Beatles (Lennon–McCartney)",
"composerDetails": "(trans. Stanley Yates)",
"performer": "Raul Matei",
@raulmatei
raulmatei / Rx.Observable.fromSuperagent.es6
Created February 24, 2016 08:18 — forked from Willmo36/Rx.Observable.fromSuperagent.es6
RxJS stream from SuperAgent request
let Rx = require("rx");
Rx.Observable.fromSuperagent = request => () => Rx.Observable.create(observer => {
request.end((err, res) => {
if (err) {
observer.onError(err)
} else {
observer.onNext(res);
}
observer.onCompleted();
@raulmatei
raulmatei / npm-cheat-sheet.md
Created February 13, 2016 08:37 — forked from AvnerCohen/npm-cheat-sheet.md
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

@raulmatei
raulmatei / connectHTMLelements_SVG.png
Created January 27, 2016 18:33 — forked from alojzije/connectHTMLelements_SVG.png
Connect two elements / draw a path between two elements with SVG path (using jQuery)
connectHTMLelements_SVG.png
@raulmatei
raulmatei / javascript_resources.md
Created June 26, 2014 20:19 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@raulmatei
raulmatei / 0_reuse_code.js
Created June 26, 2014 20:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console