Skip to content

Instantly share code, notes, and snippets.

Heyner Javier Marmol javymarmol

Block or report user

Report or block javymarmol

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
javymarmol / .gitignore
Last active Feb 10, 2020
gitignore for React.js
View .gitignore
# Created by .ignore support plugin (
### Example user template template
### Example user template
# IntelliJ project files
### Node template
javymarmol / .eslintrc
Created Feb 10, 2020
configuracion eslint 2019 react
View .eslintrc
"env": {
"browser": true,
"es6": true,
"node": true
"extends": ["airbnb"],
"globals": {
"document": false,
"escape": false,
javymarmol /
Created Dec 31, 2019
Intent para abrir mapa en android
//Con latitude y longitude
Uri gmmIntentUri = Uri.parse("geo:0,0" + "?q=" + trayecto.getLatitude() + "," + trayecto.getLongitude());
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
// Con dirección
Uri gmmIntentUri = Uri.parse("geo:0,0" + "?q=" + trayecto.getAddress());
javymarmol / centos_send_mail.txt
Created Jul 11, 2019
solve "Connection could not be established with host smtp"?
View centos_send_mail.txt
If your SELinux is in enforcing mode, you need to turn on httpd_can_sendmail and httpd_can_network_connect booleans.
You can verify if SELinux status is enforcing by running this command:
$ sestatus
Current mode: enforcing
Check status of httpd sendmail and network connect booleans:
javymarmol /
Created Jul 10, 2019 — forked from hgrimelid/
php: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib

After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found

Reinstall PHP to fix, for me that's:

View drawing_polygone.blade.php
<!DOCTYPE html>
<script type="text/javascript" src=""></script>
javymarmol / point_into_polygone
Created Nov 22, 2018
check point into a a polygone
View point_into_polygone
public function checkCoverage2(Request $request){
$y = $request["lat"];
$x = $request["lng"];
$offices = Office::all();
$inside = false;
foreach ($offices as $office){
$zone = json_decode($office->zone);
javymarmol /
Last active May 25, 2018
Enable Disable interaction for user android
//to block user touch events
//To get user interaction back
javymarmol /
Created May 10, 2018
restore existing fragment
private void changeFragment(Fragment f, String tag) {
FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
if (fragmentManager.findFragmentByTag(tag) == null) {
fragmentTransaction.add(, f, tag);
} else {
f = fragmentManager.findFragmentByTag(tag);
fragmentTransaction.replace(, f, tag);
javymarmol /
Created May 10, 2018
enable o disable view in android
public static void enableDisableView(View view, boolean enabled) {
if ( view instanceof ViewGroup ) {
ViewGroup group = (ViewGroup)view;
for ( int idx = 0 ; idx < group.getChildCount() ; idx++ ) {
enableDisableView(group.getChildAt(idx), enabled);
You can’t perform that action at this time.