I hereby claim:
- I am elct9620 on github.
- I am elct9620 (https://keybase.io/elct9620) on keybase.
- I have a public key whose fingerprint is 3226 80C8 03B2 577C F337 17D9 FEE6 45EC 5472 E299
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// File System | |
var fs = require('fs') | |
// Cordova Lib | |
var cordovaLib = require('cordova-lib'), | |
CordovaError = cordovaLib.CordovaError, | |
cordova = cordovaLib.cordova, | |
events = cordovaLib.events; | |
var opts = { |
let number1 equal 1 plus 1 | |
let number2 equal 1 multiple 2 | |
show number1 plus number2 |
# frozen_string_literal: true | |
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "rx" |
#include <iostream> | |
#include "mruby.h" | |
#include "mruby/data.h" | |
#include "mruby/compile.h" | |
#include "mruby/string.h" | |
#include "mruby/class.h" | |
class Application { | |
public: |
require 'socket' | |
def open(id) | |
fn = "/sys/class/gpio/gpio#{id}/direction" | |
File.write('/sys/class/gpio/export', id) unless File.exist?(fn) | |
File.write(fn, "out") | |
end | |
def pin(id, value) | |
fn = "/sys/class/gpio/gpio#{id}/value" |