Skip to content

Instantly share code, notes, and snippets.

⚛️
Writing React components.

Douglas Nassif Roma Junior douglasjunior

⚛️
Writing React components.
Block or report user

Report or block douglasjunior

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Kudo
Kudo / Steps_for_WebkitGTK_2_24_2.md
Last active Jul 16, 2019
Steps to integrate experimented JSC
View Steps_for_WebkitGTK_2_24_2.md

Intro

Here are the steps to integrate experimented JavaScriptCore. Hopefully this could solve the JSC crash issue on RN 0.59.

Steps (for RN 0.59)

  1. yarn add 'jsc-android@next'
  2. Modify build.gradle files.
diff --git a/android/app/build.gradle b/android/app/build.gradle
@douglasjunior
douglasjunior / README.md
Last active Mar 3, 2019
Configure seu Fishshell para exibir informações sobre o repositório Git, assim como no Zsh.
View README.md
@bironeaj
bironeaj / recipe.sh
Last active Oct 22, 2018
Ubuntu IBM DB2 ODBC + CLI + PHP PDO Installation Instructions/Script - Tailored for Laravel Forge
View recipe.sh
# Install Dev Package
sudo apt install php7.2-dev
# CD Home
cd ~
# Get CLI
wget -q -O CLI.tar.gz https://iwm.dhe.ibm.com/sdfdl/v2/regs2/smkane/IDSOC/Xa.2/Xb.bL-snMrfTDtX6PgwwuXqAdeiFX6UY09DUuicweVTRlk/Xc.ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz/Xd./Xf.LPr.D1vk/Xg.9810279/Xi.swg-idsoc97/XY.regsrvs/XZ.42v0ODLDocGa6RjgsAKBjJobG6U/ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz
# Get PDO
wget -q -O PDO.tar.gz https://pecl.php.net/get/PDO_IBM-1.3.5.tgz
# Unpack Files & Cleanup
tar -zxf CLI.tar.gz
@rbresjer
rbresjer / IOSWifiManager.h
Last active Apr 14, 2018
Programatically join Wi-Fi network on iOS with React Native wrapper for NEHotspotConfiguration
View IOSWifiManager.h
// Created by Rutger Bresjer on 10/10/2017
// Notes:
// - Be sure to enable "Hotspot Configuration" capability for the iOS target
// - Make sure the NetworkExtension framework is linked to the target
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
@interface IOSWifiManager : NSObject <RCTBridgeModule>
View TooltipGenerator.java
/**
* Created by douglas on 02/05/16.
*/
public final class TooltipGenerator {
private Activity activity;
private Dialog dialog;
private Context context;
private List<SimpleTooltip> tooltips = new ArrayList<>();
@douglasjunior
douglasjunior / TUTORIAL_LETSENCRYPT_GLASSFISH4.md
Last active May 13, 2019
Tutorial de instalação do Lets Encrypt no Glassfish 4.x
View TUTORIAL_LETSENCRYPT_GLASSFISH4.md

Tutorial de instalação do Lets Encrypt no Glassfish 4.x

Gerando certificado Lets Encrypt

Para gerar o certificado Lets Encrypt é muito simples, aqui as instruções estão baseadas em um tutorial publicado pela Locaweb. (Web archive)

Primeiro vamos criar um diretório para isso:

@cecilemuller
cecilemuller / letsencrypt_2019.md
Last active Jul 19, 2019
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)
View letsencrypt_2019.md

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@dchowitz
dchowitz / es6-debugging-in-vscode.md
Last active May 6, 2019
Debugging ES6 in VS Code
View es6-debugging-in-vscode.md

Debugging ES6 in VS Code

My current editor of choice for all things related to Javascript and Node is VS Code, which I highly recommend. The other day I needed to hunt down a bug in one of my tests written in ES6, which at time of writing is not fully supported in Node. Shortly after, I found myself down the rabbit hole of debugging in VS Code and realized this isn't as straightforward as I thought initially. This short post summarizes the steps I took to make debugging ES6 in VS Code frictionless.

What doesn't work

My first approach was a launch configuration in launch.json mimicking tape -r babel-register ./path/to/testfile.js with babel configured to create inline sourcemaps in my package.json. The debugging started but breakpoints and stepping through the code in VS Code were a complete mess. Apparently, ad-hoc transpilation via babel-require-hook and inline sourcemaps do not work in VS Code. The same result for attaching (instead of launch) to `babel-node

View mime.types
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
@odan
odan / xampp_php7_xdebug.md
Last active Jul 20, 2019
Installing Xdebug for XAMPP
View xampp_php7_xdebug.md

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

You can’t perform that action at this time.