Skip to content

Instantly share code, notes, and snippets.

Ferri Sutanto ghprod

  • Purwokerto, Indonesia
View GitHub Profile
@ghprod
ghprod / main.dart
Created Jun 28, 2020 — forked from PetreaLoredana/main.dart
This code generates a screen with a custom bidirectional and infinite scrollable PageView in Flutter. Replace your own assets names. More details can be found on Medium. https://medium.com/p/dfff43649c23/edit
View main.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(CustomPageViewApp());
class CustomPageViewApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
@ghprod
ghprod / main.dart
Created Jun 8, 2020
flutter bug floatingLabelBehavior not obey InputDecorationTheme
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
inputDecorationTheme: InputDecorationTheme(
@ghprod
ghprod / main.dart
Created Jun 8, 2020
flutter bug floatingLabelBehavior not obey InputDecorationTheme
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
inputDecorationTheme: InputDecorationTheme(
@ghprod
ghprod / main.dart
Created May 14, 2020 — forked from MarcinusX/main.dart
Ripple effect transition
View main.dart
import 'package:flutter/material.dart';
import 'package:rect_getter/rect_getter.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Fab overlay transition',
@ghprod
ghprod / random-readable-word.php
Created Jan 29, 2019
Generate random readable word by length
View random-readable-word.php
<?php
/**
* Generates human-readable string.
*
* @param string $length Desired length of random string.
*
* retuen string Random string.
*/
function readable_random_string($length = 6)
{
@ghprod
ghprod / freenom.js
Created Jan 26, 2019
Helper to set Period and NameServer
View freenom.js
$('select.select_period').val('12M').trigger('change');
$('.freenomBtn.useDNS').click();
$('.freenomBtn.useOwnDNS').click();
$('input[id*="_dn1"]').val('');
$('input[id*="_dn2"]').val('');
@ghprod
ghprod / semrush.js
Created Jan 22, 2019
Remove Semrush Popup Limit
View semrush.js
javascript:$('#sem-user-limit-popup-container').remove(); $('body').removeAttr('style');
@ghprod
ghprod / serverpilot.js
Created Dec 13, 2018
Serverpilot.com js
View serverpilot.js
var SPManageConfig = {
loginPage: "/login",
csrfCookie: "csrf_token",
csrfHeader: "X-CSRFToken"
};
var SPManage = (function(a) {
function b() {
return Cookies.get(a.csrfCookie) || ""
}
@ghprod
ghprod / google-drive.js
Created Oct 5, 2018 — forked from luyx2412/google-drive.js
React native login google, and google drive. Save storage and get again data when uninstall app.
View google-drive.js
/**
* Google Drive
* created by luyxtran264@gmail.com
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
@ghprod
ghprod / Errors.js
Created Mar 19, 2018 — forked from jeffochoa/Errors.js
Vue Form and Error validator (Laracasts)
View Errors.js
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**
You can’t perform that action at this time.