Skip to content

Instantly share code, notes, and snippets.

Ilya Drabenia idrabenia

View GitHub Profile
View gist:e366ca0e6f426d2ed7e82db3f29a497d
<table data-v-dd989bd8="" aria-busy="false" aria-colcount="3" class="table b-table" id="__BVID__211_"><!----><!----><thead class="sr-only"><tr><th aria-colindex="1" class="w-20">E-mail</th><th aria-colindex="2" class="w-75">Permissions</th><th aria-colindex="3" class="w-5">Actions</th></tr></thead><!----><tbody class=""><!----><tr class=""><td aria-colindex="1" class="w-20"><input data-v-dd989bd8="" type="email" required="required" placeholder="E-mail" autocomplete="off" aria-required="true" class="mr-1 form-control" id="__BVID__212_"></td><td aria-colindex="2" class="w-75"><div data-v-dd989bd8="" tabindex="-1" class="multiselect mr-1"><div class="multiselect__select"></div> <div class="multiselect__tags"><div class="multiselect__tags-wrap" style="display: none;"></div> <!----> <div class="multiselect__spinner" style="display: none;"></div> <input name="" type="text" autocomplete="off" placeholder="Select option" tabindex="0" class="multiselect__input"> <!----></div> <div class="multiselect__content-wrapper"
View sodium.bash
Ilyas-MacBook-Pro:zeppelin-solidity idrabenia$ time solium -d ./contracts
[DEPRECATED] You are using a deprecated soliumrc configuration format. Please see http://solium.readthedocs.io/en/latest/user-guide.html#migrating-to-v1-0-0 to migrate from Solium v0 to v1.
[DEPRECATED] Rule "double-quotes" is deprecated. Please use "quotes" instead.
[DEPRECATED] Rule "no-with" is deprecated.
contracts/Bounty.sol
13:2 warning Incorrect indentation: Make sure you use 4 SPACES per level and don't precede the code by any comments. indentation
14:2 warning Incorrect indentation: Make sure you use 4 SPACES per level and don't precede the code by any comments. indentation
16:2 warning Incorrect indentation: Make sure you use 4 SPACES per level and don't precede the code by any comments. indentation
21:2 warning Incorrect indentation: Make sure you use 4 SPACES per level and don't precede the code by any comments. indentation
View solhint.sh
Ilyas-MacBook-Pro:zeppelin-solidity idrabenia$ time solhint ./contracts/*.sol ./contracts/**/*.sol
./contracts/Bounty.sol
1:17 warning Compiler version must be fixed compiler-fixed
4:8 error Use double quotes for string literals quotes
5:8 error Use double quotes for string literals quotes
13:3 error Expected indentation of 4 spaces but found 2 indent
14:3 error Expected indentation of 4 spaces but found 2 indent
16:3 error Expected indentation of 4 spaces but found 2 indent
21:14 warning Explicitly mark visibility in function func-visibility
View main.js
var i2c = require('i2c');
var address = 0x39;
var wire = new i2c(address, {device: '/dev/i2c-1'});
var express = require('express');
var app = express();
app.get('/', function (req, res) {
readLux(function (err, luxVal) {
err && console.log(err.toString());
luxVal && console.log('Lux: ' + luxVal);
View gist:ab736dfed0e875ecfd8b
var WebSocketClient = require('websocket').client;
var client = new WebSocketClient();
client.on('connectFailed', function(error) {
console.log('Connect Error: ' + error.toString());
});
client.on('connect', function(connection) {
console.log('WebSocket Client Connected');
View gist:42d7c88c346a0362b21d
This file has been truncated, but you can view the full file.
214396 lixilPersistenceUnit TRACE [http-nio-9191-exec-6] openjpa.jdbc.SQL - <t 39977267, conn 726777432> [0 ms] spent
java.lang.NullPointerException
at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:822)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2168)
at com.ge.scheduler.lixil.util.ResourceTeamConverter.setAddressAndPhoneNumber(ResourceTeamConverter.java:83)
at com.ge.scheduler.lixil.util.ResourceTeamConverter.resourceTeamToBO(ResourceTeamConverter.java:68)
at com.ge.scheduler.lixil.util.ResourceTeamConverter.resourceTeamToResourceTeamBO(ResourceTeamConverter.java:50)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
You can’t perform that action at this time.