Skip to content

Instantly share code, notes, and snippets.

View goldylucks's full-sized avatar

Adam Goldman goldylucks

View GitHub Profile
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
current directory: /Users/Goldy/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/eventmachine-1.2.7/ext
/Users/Goldy/.rbenv/versions/2.5.5/bin/ruby -I /Users/Goldy/.rbenv/versions/2.5.5/lib/ruby/site_ruby/2.5.0 -r ./siteconf20220204-75650-1z06u3r.rb extconf.rb
checking for -lcrypto... yes
checking for -lssl... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
@goldylucks
goldylucks / make error in render
Created May 13, 2019 12:23
Answer to user's question
class SignUpForm extends React.Component {
// other stuff
render()
const shouldMarkError = (field) => {
const hasError = errors[field];
const shouldShow = this.state.touched[field];
return hasError ? shouldShow : false;
};
@goldylucks
goldylucks / Guide
Created October 18, 2018 16:48
Checkbox Plugin
https://docs.chatfuel.com/grow/grow-documentation/checkbox-plugin
@goldylucks
goldylucks / crashReport.js
Created June 19, 2018 18:51
backtrace crash reporting example
import { crashReporter } from 'electron'
import bt from 'backtrace-js'
import pjson from '../../package.json'
export default { initForMain, initForRenderer }
const token = '3951a92f3c2901f77b728dfadd9539d6120d3fa23d709ccc7980564dda045004'
const endpoint = 'https://zenprotocol.sp.backtrace.io:8443'
const attributes = {
@goldylucks
goldylucks / React
Created May 11, 2017 02:33
React to Redux conversion
// @flow
import React from 'react'
import App from './App'
type Props = {
onLogin: Function,
onSignup: Function,
}
{
bla: 'foo'
}
@goldylucks
goldylucks / safeeyes.json
Created July 1, 2017 11:59
Safe Eyes file after `mkdir -p ~.config/safeeyes/style`
{
"active_window_class": {
"skip_break": [],
"take_break": []
},
"audible_alert": true,
"break_interval": 15,
"disable_options": [
{
"label": "for_x_minutes",
@goldylucks
goldylucks / current response
Created January 4, 2017 12:57
mobileStructure diff
{
"title": "Bethlehem",
"children": [
{
"title": "Bethlehem Labelling",
"children": [
{
"title": "Box Line",
"title": "Shrink Line"
}],
@goldylucks
goldylucks / response
Created January 1, 2017 17:09
Mobile Structure Response
[
{
title: "Rhodes",
children: [
{
title: "Canneries",
children: [
{
title: "Bethlehem",
children: [
@goldylucks
goldylucks / appium log
Created December 12, 2016 14:03
Appium bug gist
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"","appium-version":"1.3","platformName":"Android","platformVersion":"6.0","deviceName":"Android Emulator","app":"android/app/build/outputs/apk/app-release.apk"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"","appium-version":"1.3","platformName":"Android","platformVersion":"6.0","deviceName":"Android Emulator","app":"android/app/build/outputs/apk/app-release.apk"},null,null,null,null,null,null]
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] browserName: ''
[Appium] appium-version: '1.3'
[Appium] platformName: 'Android'
[Appium] platformVersion: '6.0'
[Appium] deviceName: 'Android Emulator'
[Appium] app: 'android/app/build/outputs/apk/app-release.apk'