Skip to content

Instantly share code, notes, and snippets.

View digideskio's full-sized avatar

airbender digideskio

View GitHub Profile
#!/usr/bin/env ruby
# by @tapbot_paul
# http://dump.beaugil.es/blog/itunesmatch/
# Don't blame me if this nukes your metadata, formats your drive, kills your kids
# This script goes through any iCloud Matched songs in your iTunes library and tries to update the
# metadata from the iTunes Store
# Will run against selected tracks or if nothing selected entire library
# install the required gems with the following commands
@digideskio
digideskio / 0 basics.md
Created December 19, 2018 00:44 — forked from threepointone/0 basics.md
css-in-js

A series of posts on css-in-js

0. styles as objects

First, an exercise. Can we represent all of css with plain data? Let's try.

let redText = { color: 'red' };
@digideskio
digideskio / main.cs
Created October 25, 2018 00:23
New Public Gist
using System.Linq;
using ServiceStack;
using ServiceStack.Text;
public class GithubRepository
{
public string Name { get; set; }
public string Description { get; set; }
public string Url { get; set; }
public string Homepage { get; set; }
@digideskio
digideskio / iRadio-0.1.1.lua
Created October 10, 2018 11:47 — forked from denzuko/iRadio-0.1.1.lua
openfm+opencomputers based radio player
--- Needed modules
local component = require("component")
local shell = require("shell")
local fm = component.openfm_radio
local args, options = shell.parse(...)
if #args == 1 then
if args[1] == "-h" then
io.write("Usage: iRadio [station id]\n")
io.write("Copyright (c) 2016 Dwight Spencer (@denzuko) <0XFC13F74B>, All Rights Reserved.\n")
@digideskio
digideskio / overpass.md
Created August 25, 2018 07:52 — forked from planemad/overpass.md
Creating custom OSM based maps using Mapbox

If you have been playing around with the new Mapbox Studio you might be interested to know how to make a custom map with objects of your own interest from OpenStreetMap.

To make the process of creating an updating an OSM based dataset on Mapbox more seamless, I was looking into a command line based workflow that could extract OSM data from Overpass and update a Mapbox hosted dataset in one go.

Requirements

Generate an Overpass Query

  • Use Overpass Turbo to create a query for the data you are interested in extracting. Since i'm interested in bus stops, I first browse the map to Bengaluru, India and then generate a query using the wizard query highway=bus_stop
@digideskio
digideskio / server.dart
Created July 24, 2018 08:16 — forked from munificent/server.dart
Awesome Dart web server
#import('dart:io');
#import('dart:isolate');
void main() {
var type = 'fast';
var args = new Options().arguments;
if (args.length > 0) {
type = args[0];
}
@digideskio
digideskio / realtime.md
Created July 20, 2018 21:48 — forked from auremoser/realtime.md
Realtimeliness: 140 Journos + CartoDB
@digideskio
digideskio / Eyeverify
Created May 17, 2018 07:41 — forked from itoshige/Eyeverify
FinovateEurope2016
◆概要
スマートフォンのカメラで眼球を読み取り本人確認できるソリューションを提供。
自分の眼球の中の血管の流れを撮影し認証するため、写真は不可。
20cm程度近づける必要あり。3秒程度で認証可能。(アプリ利用結果)
◆強み
・99.99%の精度
・外付け器具なしで簡単にサービスへ組み込み可能
・暗号化してローカルに保存するため、消えたり、盗まれたりすることはない。
・動く目でも認証可能。
@digideskio
digideskio / flow.json
Created May 9, 2018 19:20 — forked from davidgeorgeuk/flow.json
Node-RED Q&A plus Twilio SMS Demo
[{
"id": "546be34d.bd9d64",
"type": "watson-question-answer",
"name": "",
"output": "top",
"corpus": "healthcare",
"x": 377,
"y": 115,
"z": "45fca0cc.ba036",
"wires": [
@digideskio
digideskio / Install NVIDIA Driver and CUDA.md
Last active May 7, 2018 13:49 — forked from pbamotra/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS