Skip to content

Instantly share code, notes, and snippets.

View RyanB1303's full-sized avatar
😉

Ryan B RyanB1303

😉
View GitHub Profile
@RyanB1303
RyanB1303 / Rails Javascript
Created April 16, 2022 08:39
rails javascript
$('#notice').html("<%= j render 'shared/flash', flash: flash %>");
var tombol_pengganti = `<button class= 'btn btn-primary d-inline-flex align-items-center toggle-active' disabled>
Usulan Diajukan
<i class='fas fa-check-circle text-success icon icon-xs ms-2'></i>
</button>`;
$(".action-<%= dom_id(@musrenbang) %>").html(tombol_pengganti);
@RyanB1303
RyanB1303 / snippet_tombol_pengganti
Created April 16, 2022 08:34
snippet_tombol_pengganti
$('#notice').html("<%= j render 'shared/flash', flash: flash %>");
var tombol_pengganti = `<button class= 'btn btn-primary d-inline-flex align-items-center toggle-active' disabled>
Usulan Diajukan
<i class='fas fa-check-circle text-success icon icon-xs ms-2'></i>
</button>`;
$(".action-<%= dom_id(@musrenbang) %>").html(tombol_pengganti);
@RyanB1303
RyanB1303 / rails-notes.md
Last active April 16, 2022 08:31
rails development notes

Ruby on Rails notes

this gist contain my notes from developing apps with ruby on rails framework correction / suggestion are welcome, thank you

JavaScript on Rails

rails using technique called 'unobtrusive javascript' for handling most of their javascript unobstrusive is just a way to remove inline javascript trigger event ( like click ) to separate js using data- attribute Notes on flash message

  • put flash message inside div with id ( e.g #notice ) and make it partial ( shared/flash_message )
  • give form_with a local:false
@RyanB1303
RyanB1303 / perubahan.md
Last active March 28, 2022 03:09
Perubahan Aplikasi SKP
  1. Tanda Merah di SKP Daftar Index Khusus menjadi Telah mengisi rencana kinerja dari atasan tapi belum diverifikasi
  2. Tanda Biru Menjadi sudah diverifikasi rencana kinerjanya
  3. Ganti Laporan Index Khusus dengan nama Laporan Aliran Sasaran
  4. 2 menu
  • Sasaran RPJMD -> S1 - S11
  • Sasaran Prioritas -> S12 - S16 ( indeks dihitung total )
@RyanB1303
RyanB1303 / kebutuhan_api.md
Last active March 23, 2022 01:52
API yang dibutuhkan

Kebutuhan API SKP

  1. Sasaran Kinerja Pegawai + Indikator + Rencana Aksi + bulan + tahun ( diambil per OPD )
  2. Realisasi Sasaran Kinerja Pegawai + Realisasi Rencana Aksi + bulan + tahun ( diambil per OPD )
@RyanB1303
RyanB1303 / Ruby on Rails for Windows 10
Last active November 18, 2021 01:45
Ruby on Rails for Windows 10 -- with postgresql 13
# Installation
* install uru
* Install ruby ( for first time ) using ruby installer for windows
* get the version with devkit
* install ruby, don't add to path
* uru admin add rubypath/bin
* uru thehashfromadminadd
* ruby -v
* copy msy64 folder to top level folder , eg: c:\mysys64
@RyanB1303
RyanB1303 / belajar-web.md
Last active April 19, 2021 01:17
Web Development Basic

Tools Untuk Pengembangan Web

  1. Code Editor / IDE
  • VSCode ( recommended )
  • SublimText 3
  • Notepad ++
  • Vim
  • Text Editor lain
  1. Alur Belajar