Skip to content

Instantly share code, notes, and snippets.

View bartolkaruza's full-sized avatar
🌎

Bartol Karuza bartolkaruza

🌎
View GitHub Profile
@bartolkaruza
bartolkaruza / gist:1d79aef7542d6b6856f7e2dccbf50a93
Created May 5, 2023 07:24
Find file and line number for custom openbook error code
function decodeSerumErrorCode(customErrorCode) {
// Extract the line number (lower 16 bits)
const lineNumber = customErrorCode & 0xFFFF;
// Extract the source file ID (upper 8 bits)
const sourceFileId = (customErrorCode >> 24) & 0xFF;
// Map the source file ID to the corresponding file name
const sourceFileMap = {
1: "src/state.rs",
@bartolkaruza
bartolkaruza / lemuria
Created December 4, 2022 03:46
Lemuria profit sharing agreement
This is a legal binding agreement entered into between Arthur Carmazzi and Budiarti Wayan (further referred to as "Owners"), and the purchaser of this membership (further referred to as “Member/Stakeholder”). Where Owners will share 15% of annual ticket sales revenue with all members of the Lemuria Mythological Society based on their membership level. Profit-sharing is based on the total collection of US$220,000 from Memberships = 15% of baseline revenue annual return. Member/Stakeholder will receive profit-sharing in accordance with the percentage of what this membership represents in relation to the collected US$220,000. i.e. Advocate of Wellbeing with a $1000 investment will receive $1,570 per year based on the current revenue estimates. This is 1/220th of the 15% of the estimated ticket sales (where 15%=US$345,600).
Each member will receive annual payments starting on the first March 15 after one full year of operation. Then subsequently every other March 15 for life. The Membership is transferable.
Ple
@bartolkaruza
bartolkaruza / detox_ios.log
Created February 22, 2019 07:44
detox ios log
TEMP_DIR = /var/folders/7p/fhyj14d15bq09z715k9r782h0000gn/T/DetoxBuild.OE8T
2019-02-22 15:37:06.060 xcodebuild[5109:2342687] [MT] PluginLoading: Required plug-in compatibility UUID D7881182-AD00-4C36-A94D-F45FC9B0CF85 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-02-22 15:37:06.061 xcodebuild[5109:2342687] [MT] PluginLoading: Required plug-in compatibility UUID D7881182-AD00-4C36-A94D-F45FC9B0CF85 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-02-22 15:37:07.863 xcodebuild[5185:2342917] [MT] PluginLoading: Required plug-in compatibility UUID D7881182-AD00-4C36-A94D-F45FC9B0CF85 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-02-22 15:37:07.863 xcodebuild[5185:2342917] [MT] PluginLoading: Required plug-in c
@bartolkaruza
bartolkaruza / LineHeightTester.js
Created November 4, 2017 11:48
Tester component for quickly displaying various line height scenario's in React Native
import React from 'react';
import {View, ScrollView, Text, Dimensions, Platform} from 'react-native';
const {width, height} = Dimensions.get('window');
const scenarios = [
{
lineHeight: 12,
fontSize: 15
},
{
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, {Component} from 'react';
import {
AppRegistry,
StyleSheet,
import React, {Component} from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
FlatList
} from 'react-native';
export default class FlatListInverted extends Component {
@bartolkaruza
bartolkaruza / index.js
Created August 3, 2016 19:59
jest-jasmine2 build/index.js sane logging for unit tests
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'use strict';
@bartolkaruza
bartolkaruza / gist:052f33816af3ebb62294
Created December 21, 2015 23:09
universal-redux.config.js
/* eslint-disable */
const path = require('path');
const isProduction = process.env.NODE_ENV === 'production';
const projectRoot = path.resolve(__dirname, '..');
const sourceRoot = path.resolve(__dirname, '../src');
module.exports = {
/*
// Metadata for the site
java.lang.ExceptionInInitializerError
at org.codehaus.plexus.DefaultPlexusContainer$ContainerModule.configure(DefaultPlexusContainer.java:790)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.spi.Elements.getElements(Elements.java:78)
at org.sonatype.guice.bean.binders.MergedModule.configure(MergedModule.java:54)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.InjectorShell$Builder.build(InjectorShell.java:135)
import org.junit.runners.model.InitializationError;
import roboguice.RoboGuice;
import android.app.Application;
import com.google.inject.Injector;
import com.google.inject.util.Modules;