Skip to content

Instantly share code, notes, and snippets.

View cjmling's full-sized avatar

Chandrajeet Maurya cjmling

  • Bangkok , Thailand
View GitHub Profile
@cjmling
cjmling / VerticalSelectScrollView.tsx
Last active August 23, 2024 10:06
react-native animated vertical select
import React, { useRef, useState } from 'react';
import { View, StyleSheet, ScrollView } from 'react-native';
import Animated, {
useSharedValue,
interpolate,
useAnimatedStyle,
Extrapolation,
} from 'react-native-reanimated';
// Changeable
@cjmling
cjmling / gist:20a89594372a7667b5b3004905b9d48a
Last active May 6, 2017 09:39
PHP OOP Modifier and Inheritance
<?php
class Car {
public $public_parent = 'public parent';
private $private_parent = 'private parent';
protected $protected_parent = 'protected parent';
public function getCarPrivate(){
return $this->private_parent;
@cjmling
cjmling / myfirstgist.js
Last active March 17, 2017 11:48
My First Gist
$(document).ready(function(){
$(document).click(function(event){
if(event.target.id == "my_submit"){
alert("yo");
var my_phone = $("#my_amount").val();
var my_number = $("#my_phone").val();
alert(my_phone + my_number);
}
});
});