This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# Use this template to report PaperTrail bugs. | |
# Please include only the minimum code necessary to reproduce your issue. | |
require "bundler/inline" | |
# STEP ONE: What versions are you using? | |
gemfile(true) do | |
ruby "2.5.1" | |
source "https://rubygems.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// All of these should return the keys "a", "b", "c" | |
var inputs = [ | |
{a:1,b:2,c:3}, // Simple object | |
{a:{b:2,c:3}}, // Simple object with nesting | |
{a:{a:{b:2,c:3}}}, // Repeated key hiding nesting | |
{a:[{b:2,c:3}]}, // keys behind array | |
]; | |
inputs.push(inputs); // reference cycle and array at top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple gist to get Erlang+Elixr+Phoenix up and running quick on cloud9 | |
# kudos do @oxyrus, for the medium post | |
# https://medium.com/@Oxyrus/how-to-install-the-phoenix-framework-on-cloud9-ef0ac265229c | |
# apparently this is required so as not to fail in some part of the install | |
sudo touch /etc/init.d/couchdb | |
# add the erlang solutions repo | |
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb | |
sudo apt-get -y update | |
# install elixir from the previously added repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Dump the memory on a NTAG203 NFC tag using the Adafruit PN532 RFID/NFC Shield | |
http://www.adafruit.com/products/789 | |
This sketch requires the installation of the Adafruit I2C library for the shield, | |
which can be found at https://github.com/adafruit/Adafruit_NFCShield_I2C | |
The datasheet and other info for the NTAG203 can be found at | |
http://www.nxp.com/products/identification_and_security/smart_label_and_tag_ics/ntag/series/NTAG203.html | |