Skip to content

Instantly share code, notes, and snippets.

View goxr3plus's full-sized avatar
💎
💎 Creating Spicy Projects 💎

GOXR3PLUS STUDIO goxr3plus

💎
💎 Creating Spicy Projects 💎
View GitHub Profile
@pie6k
pie6k / useShareForwardedRef.tsx
Created October 23, 2019 10:02
forwardRef hook
import React, { useRef, forwardRef, Ref, useEffect } from 'react';
import { TextInputProps, TextInput } from 'react-native';
import styled from 'styled-components/native';
interface Props extends TextInputProps {
showEditLabel?: boolean;
}
const Input = styled.TextInput``;
@goxr3plus
goxr3plus / Javascript Bind , Call , Apply examples
Last active March 7, 2019 09:51
Javascript Bind , Call , Apply examples
//-----------------------Bind , Call , Apply ------------------------------//
//Example 1
const john = {
name: "John",
age: 26,
job: "Teacher",
presentation: function(style, timeOfDay) {
if (style === "formal") {
console.log(
@goxr3plus
goxr3plus / Detect END OF LINE (EOL) in File with Java
Last active December 16, 2022 14:28
Detect END OF LINE (EOL) in File with Java
enum Eol
{
WINDOWS,
MAC,
LINUX
}
Reader r = new FileReader("file absolute path");
int i = -1;
Eol eol = null;
@goxr3plus
goxr3plus / Aggelos PythonProject
Last active November 8, 2018 14:48
Python Binary to Decimal , Python Decimal to Binary
``` PYTHON
#----------------Convert Binary to Decimal and check for validity----------------------
def isBinary(s):
try:
return set(s) <= set('01')
except ValueError:
return False
@BoGnY
BoGnY / README.md
Last active March 12, 2024 15:53
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@jimmywarting
jimmywarting / readme.md
Last active April 21, 2024 15:32
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@badarshahzad
badarshahzad / README.md
Created October 20, 2016 20:49 — forked from hofmannsven/README.md
My simply Git Cheatsheet
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@jewelsea
jewelsea / JavaFXTrayIconSample.java
Last active November 13, 2023 14:54
Demonstrate using the System Tray (AWT) to control a JavaFX application.
import javafx.application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.*;
import javax.imageio.ImageIO;
import java.io.IOException;
@abhinayagarwal
abhinayagarwal / HorizontalScrollImageGallery
Created March 28, 2014 13:08
HorizontalScrollImageGallery
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseButton;