Skip to content

Instantly share code, notes, and snippets.

View adderly's full-sized avatar

Adderly adderly

View GitHub Profile
@adderly
adderly / react-native-fast-image+8.6.3.patch
Created June 17, 2023 20:59
React native web fixes patch react-native-fast-image+8.6.3.patch
diff --git a/node_modules/react-native-fast-image/dist/index.js b/node_modules/react-native-fast-image/dist/index.js
index 58e0308..7762e14 100644
--- a/node_modules/react-native-fast-image/dist/index.js
+++ b/node_modules/react-native-fast-image/dist/index.js
@@ -1,6 +1,6 @@
import _extends from '@babel/runtime/helpers/extends';
import React, { forwardRef, memo } from 'react';
-import { NativeModules, StyleSheet, requireNativeComponent, Image, View, Platform } from 'react-native';
+import { NativeModules, StyleSheet, Platform, View, Image } from 'react-native';
@adderly
adderly / uri-parser.cpp
Created August 13, 2019 01:11 — forked from RedCarrottt/uri-parser.cpp
URI Parser in C++
/* Original code: http://stackoverflow.com/questions/2616011/easy-way-to-parse-a-url-in-c-cross-platform */
#include <string>
struct url {
public:
url(const std::string& url_s) {
this->parse(url_s);
}
std::string protocol_, host_, path_, query_;
private:
void parse(const std::string& url_s);
@adderly
adderly / gist:6364388e29f641554832fe0b2134345b
Created April 26, 2016 01:24
Failed to build on linux qt 5.6.0
:56:48: Running steps for project QtAV...
20:56:48: Configuration unchanged, skipping qmake step.
20:56:48: Starting: "/usr/bin/make" -j 4
cd src/ && ( test -e Makefile.libQtAV || /home/uname/Qt5.6.0/5.6/gcc_64/bin/qmake /home/uname/development/qt/QtAV/src/libQtAV.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile.libQtAV ) && /usr/bin/make -f Makefile.libQtAV
cd tools/ && ( test -e Makefile || /home/uname/Qt5.6.0/5.6/gcc_64/bin/qmake /home/uname/development/qt/QtAV/tools/tools.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ) && /usr/bin/make -f Makefile
make[1]: Entering directory '/home/uname/development/qt/build-QtAV/-Desktop-Debug/tools'
cd install_sdk/ && ( test -e Makefile || /home/uname/Qt5.6.0/5.6/gcc_64/bin/qmake /home/uname/development/qt/QtAV/tools/install_sdk/install_sdk.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ) && /usr/bin/make -f Makefile
make[1]: Entering directory '/home/uname/development/qt/build-QtAV/-Desktop-Debug/src'
make[1]: Nothin
@adderly
adderly / ImageRenderer.cpp
Created May 13, 2015 18:58
ImageRenderer localBox modification.
/*
* Copyright (C) 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@adderly
adderly / gist:8e38334292ba872acfe4
Created March 1, 2015 17:45
Spriter Launch Log
QCssParser::parseHexColor: Unknown color name '#lightgray'
QCssParser::parseHexColor: Unknown color name '#lightgray'
QCssParser::parseHexColor: Unknown color name '#lightgray'
QCssParser::parseHexColor: Unknown color name '#lightgray'
QCssParser::parseHexColor: Unknown color name '#lightgray'
QCssParser::parseHexColor: Unknown color name '#lightgray'
QCssParser::parseHexColor: Unknown color name '#lightgray'
QMetaObject::connectSlotsByName: No matching signal for on_animHovered(QString)
QMetaObject::connectSlotsByName: No matching signal for on_timer_timeout()
QCssParser::parseHexColor: Unknown color name '#lightgray'
# function processes each sub-directory and then adds each source file in directory
# each function should cascade back upward in setting variables so that the bottom directory
# adds its source first, and then the level above it adds its source and passes both up, and so on...
function( recursively_include_src which_directory return_variable )
if( ${return_variable} STREQUAL "headers" )
set( file_extension ".h" )
else( ${return_variable} STREQUAL "headers" )
set( file_extension ".c" )
endif( ${return_variable} STREQUAL "headers" )
Component {
id: reusableComponent
Item {
property string value: "Hello"
}
}
property Item itemA: reusableComponent.createObject(this)
property Item itemB: reusableComponent.createObject(this)
Text {