Skip to content

Instantly share code, notes, and snippets.

Avatar
💯
Focusing

Aden Aziz askareija

💯
Focusing
  • Japan
View GitHub Profile
@askareija
askareija / setup.md
Last active Jun 21, 2021
Setting up Vue debugging on VSCode
View setup.md
View activity_form.dart
import 'package:aktivitas/models/activity.dart';
import 'package:aktivitas/models/activity_detail.dart';
import 'package:aktivitas/models/user.dart';
import 'package:aktivitas/providers/activity_provider.dart';
import 'package:aktivitas/providers/user_provider.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:aktivitas/utils.dart';
import 'package:aktivitas/constants.dart';
View products.json
[
{
"sku": "AZF3-ZE552KL-4/64-BLACK",
"brand": "Asus",
"category": "Mobile phones",
"name": "ASUS ZENFONE 3 ZE552KL 4/64GB GARANSI RESMI",
"currency": "IDR",
"price": 1999000,
"model_number": "ZE552KL",
"product_code": "4712900432848",
@askareija
askareija / ig_json_parser.rb
Last active Jul 31, 2019
JSON Parser to CSV for Instagram scraper
View ig_json_parser.rb
require 'json'
require 'csv'
puts "======= JSON Parser for Instagram ========="
puts "================== v1.0 ==================="
puts "============== Megumi Aliya ==============="
def parse_posts(account_name)
pages = Dir.glob("#{account_name.chomp}/#{account_name.chomp}_posts_page_*.json")
total_pages = pages.sort_by { |s| s.scan(/\d+/).first.to_i }.last.split("_").last.delete(".json").to_i
@askareija
askareija / instagram_scraper.rb
Last active Jul 3, 2019
Instagram Scraper Metadata Script
View instagram_scraper.rb
require 'json'
require 'net/http'
require 'uri'
require 'fileutils'
puts "============= Instagram Scraper ============="
puts "================== v1.0 ==================="
puts "============== Megumi Aliya ==============="
3.times do
puts ""
View tracking_service.rb
class TrackingService
def self.track(*args, &block)
new(*args, &block).execute
end
def initialize(no_resi, expedition_type)
@no_resi = no_resi
@expedition_type = expedition_type
end