Skip to content

Instantly share code, notes, and snippets.

<CardList
selectable
selectedBy="id"
handleSelection={() => {}}
loading={this.state.loading}
className="p-3"
asRows={[
{
accessor: 'name',
header: 'Full Name',
@insanrizky
insanrizky / how-to-use-responsive.js
Last active June 19, 2019 07:27
Responsive Compound Component
import React from 'react';
import Responsive, { NotMatches, Matches } from '#src/common/Responsive';
class Test extends React.Component {
render() {
return (
<div className="p-4">
<Responsive width="max-width: 768px">
<h3>Header</h3>
<hr />
@insanrizky
insanrizky / curr.js
Created August 8, 2019 08:31
Curr with K M B T
import React, { Component } from 'react';
class Curr extends Component {
state = {
successor: 0,
roundingType: '',
}
componentDidMount() {
const { value } = this.props;
@insanrizky
insanrizky / .zshrc
Last active February 13, 2021 18:22
My Terminal Personalization
set_tab_title() {
echo -e "\033]${PWD##*/}\007"
}
precmd_functions=($precmd_functions set_tab_title)
autoload -U colors && colors
# autoload -Uz compinit
#if type brew &>/dev/null; then
@insanrizky
insanrizky / tiktok-posts_apify
Created October 19, 2023 06:25
Tiktok Post From APIFY
^ array:2 [
0 => array:3 [
"id" => 105
"tiktok_post_link" => "https://www.tiktok.com/@aintyoursb/video/7049680064471960858"
"response" => array:1 [
0 => array:19 [
"id" => "7049680064471960858"
"text" => "andalancuuuu😎😎 #brightiesjourney#brightyindonesia#pemutihketiak"
"createTime" => 1641381547
"createTimeISO" => "2022-01-05T11:19:07.000Z"