Skip to content

Instantly share code, notes, and snippets.

I'm not giving up 👍

RainbowHat rainbowhat

I'm not giving up 👍
Block or report user

Report or block rainbowhat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:fb588b614171c15e7b65dfdb15a3bc7d
Running Harmony Mainnet/Pangaea Node Status v0.1.2
You're running as: ec2-user
Checking status for the node using the Pangaea network!
Current time is: Fri Sep 13 08:44:21 UTC 2019
1. Installation - checking that your installation is correct
rainbowhat / gist:00ee308129fd52b87156b5e0715f8fff
Created Feb 14, 2019
Page.Content Hang/Freeze Puppeteer after 101 loop
View gist:00ee308129fd52b87156b5e0715f8fff
const puppeteer = require('puppeteer');
const fs = require('fs');
(async () => {
const browser = await puppeteer.launch({headless: false,args: ['--disable-notifications','--disable-gpu']});
const page = await browser.newPage();
await page.setViewport({
width: 1920,
height: 1080
View gist:c5c43cbe6fa89e546f47021bff0a3b99
Process process = Runtime.getRuntime().exec("su");
OutputStreamWriter outputStream = new OutputStreamWriter(process.getOutputStream());
outputStream.write("/system/bin/screencap -p\n");
Bitmap screen = BitmapFactory.decodeStream(process.getInputStream());
ByteArrayOutputStream buffer2 = new ByteArrayOutputStream(screen.getWidth() * screen.getHeight());
final String encodedString2 = Base64.encodeToString(buffer2.toByteArray(), Base64.DEFAULT);
View gist:b54e83dea2039f12ec5e
package controllers;
import play.*;
import play.mvc.*;
import play.db.jpa.*;
import views.html.*;
import models.Person;
//import java.util.List;
View gist:ffdb8cd57076781786ad
package controllers;
import play.*;
import play.mvc.*;
import play.db.jpa.*;
import views.html.*;
import models.Person;
//import java.util.List;
View gist:c32645e22f2ff6952a23
Name: Yuan Minn
Postal Code Address: 730843
HP : 93513575
Remarks : Did not receive mail.
View gist:09fa313c00818f63037d
06-03 22:07:51.759 26306-26306/ E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invokeNative(Native Method)
View gist:4aace587ae3a3ae67805
import android.content.Intent;
import android.database.Cursor;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.util.Log;
import android.widget.Toast;
import android.
View gist:21993b0671e6baf210a9
"data": [{"comments_count": 1, "description": "Preorder waiting time two weeks\n\nMarvel Lego Inspired Keychains:\n- Iron Man\n- Batman\n- Superman\n- Captain America\n- Thor\n- Wolverine\n- Spiderman\n- Hulk\nTeenage Mutant Ninja Turtles Lego Inspired Keychains\nToy Story Lego Inspired Keychains:\n- Woody\n- Buzzlightyear\n- Jessie\n- Alien\n\n1 for SGD 8.00\n2 for SGD 7.50 each\n3 for SGD 7.00 each\n4 for SGD 6.50 each\n5 and above for SGD 6.00 each", "id": 8953505, "likes_count": 145, "like_status": false, "location": {"latitude": 0.0, "longitude": 0.0}, "location_name": "", "location_address": "", "marketplace": {"id": 1880252, "country": {"city_count": 1, "code": "SG", "name": "Singapore", "id": 1880251}, "name": "Singapore", "location": {"latitude": 1.28967, "longitude": 103.85007}}, "primary_photo": "photos/products/2014/10/25/153045_8953505_thumbnail.jpg", "primary_photo_url": "", "price": "6.00", "p
View gist:327a017c32f0b8871ae4
return array(
| Application Debug Mode
You can’t perform that action at this time.