Skip to content

Instantly share code, notes, and snippets.

View RobyCigar's full-sized avatar
:octocat:
Focusing

Rabih Utomo RobyCigar

:octocat:
Focusing
View GitHub Profile
@RobyCigar
RobyCigar / index.md
Last active April 14, 2021 09:37
Similiar kanji's
Kanji On Reading Kun Reading Meaning
カン - government service; the bureaucracy
デン、 テン との、 -どの Shinto shrine, constellations, palace, princess
ジョウ、 チョウ location, place
ショウ きず、 いた.む、 いた.める wound, hurt, injure, impair, pain, injury, cut, gash, scar, weak point
Explosion of the Space Shuttle Challenger
Address to the Nation, January 28, 1986
by President Ronald W. Reagan
Ladies and gentlemen, I'd planned to speak to you tonight to report on the state of the Union, but the events of earlier today have led me to change those plans. Today is a day for mourning and remembering.
Nancy and I are pained to the core by the tragedy of the shuttle Challenger. We know we share this pain with all of the people of our country. This is truly a national loss.
@RobyCigar
RobyCigar / index.php
Last active July 11, 2021 14:34
Show all post title wordpress
<ul>
<?php
// Define our WP Query Parameters
$the_query = new WP_Query( 'posts_per_page=5' ); ?>
<?php
// Start our WP Query
while ($the_query -> have_posts()) : $the_query -> the_post();
@RobyCigar
RobyCigar / index.php
Last active September 13, 2021 03:21
Adding and delete a single data
php artisan tinker
Psy Shell v0.10.3 (PHP 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 — cli) by Justin Hileman
Add Data
>>> $test = new \App\Models\Project();
=> App\Project {#3083}
>>> $test->name = "Test Project";
=> "Test Project"
>>> $test->save();
=> true
import { useEffect, useState } from 'react';
import { loadAsync } from 'expo-font';
/**
* Load a map of custom fonts to use in textual elements.
* The map keys are used as font names, and can be used with `fontFamily: <name>;`.
* It returns a boolean describing if all fonts are loaded.
*
* Note, the fonts are not "reloaded" when you dynamically change the font map.
function eventFire(el, etype){
if (el.fireEvent) {
el.fireEvent('on' + etype);
} else {
var evObj = document.createEvent('Events');
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}
@RobyCigar
RobyCigar / remove env file from git
Created September 8, 2021 04:28 — forked from gjerokrsteski/remove env file from git forever
remove env file from git history
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master

Posted on May 6, 2020 by admin Changing vim indentation and tab width to 2 spaces

You can add the configuration in the ~/.vimrc file

vim ~/.vimrc

Or add it through a separate plugin file

@RobyCigar
RobyCigar / index.js
Created September 18, 2021 11:39
script create form
// document.body.innerHTML = " "
// document.body.style.background = 'white'
function createInput(container, label, type) {
var container = document.createElement('div')
var l = document.createElement('label')
var i = document.createElement('input')
l.innerHTML = `${label} : `;
i.setAttribute('type', type)
@RobyCigar
RobyCigar / semantic-commit-messages.md
Created September 23, 2021 16:29 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example