Skip to content

Instantly share code, notes, and snippets.

View ugifractal's full-sized avatar

sugiarto ugifractal

View GitHub Profile
{% disqus_widget shortname_anda %}
#contoh
{% disqus_widget 'webmuapp' %}
{% latest_pages jumlah_halaman %}
#contoh
{% latest_pages 10 %}
{% sub_part nama_sub_halaman %}
#contoh
{% sub_part 'footer' %}
{% paginate site.products to products by 20 %}
{% paginator products %}
id cofog1code cofog2code cofog3code cofog1label cofog2label cofog3label amount time
1 A B C Level1 Level2 Level3 1 2015
ID
1
2
3
4
5
id cofog1code cofog2code cofog3code cofog1label cofog2label cofog3label amount time
1431772969128-10 01 01.1 01.1.1 General public services Executive and legislative organs, financial and fiscal affairs, external affairs Executive and legislative organs 1 2015
1431772969128-11 01 01.1 01.1.2 General public services Executive and legislative organs, financial and fiscal affairs, external affairs Financial and fiscal affairs 1 2015
@ugifractal
ugifractal / util.rb
Created November 22, 2018 13:46
ruby Method using Faraday to send push notification on onesignal API
def self.onesignal_notify(user, message)
headers = {
"Authorization" => "BASIC #{APP_CONFIG['onesignal']['api_key']}",
"Content-Type" => "Application/json"
}
body = {
"app_id" => APP_CONFIG['onesignal']['app_id'],
"data" => {"type": "post"},
"contents" => {"en" => message},
#"include_player_ids" => [user.onesignal],
@ugifractal
ugifractal / fix.txt
Created June 29, 2019 02:21
fixing react-native version mismatch
yarn react-native upgrade
rm -rf node_modules
yarn
expo client:install:android
expo start