Skip to content

Instantly share code, notes, and snippets.

Kristoforus Rua kru

  • Indonesia
Block or report user

Report or block kru

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
@kru
kru / request.har
Created Sep 19, 2019
request from twilio to setting
View request.har
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
View request.har
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
@kru
kru / query.log
Created Aug 30, 2019
Query results for 2039 contacts
View query.log
This file has been truncated, but you can view the full file.
View policy.js
/**
* policyCategory: this is either
* 0: General,
* 1: Land & Agriculture,
* 3: Energy
* 4: IPPU & Waste
* 5: Water and Fisheries
*/
const POLICY_CATEGORY = {
GENERAL: 0,
View module.js
var myAwesomeModule = function(members) {
function change() {
publicAPI.showMember = removeFalsy;
}
function getMembers() {
console.log(members);
}
function removeFalsy() {
View moduleIIFE.js
var myAwesomeModule = (function(members) {
function change() {
publicAPI.showMember = removeFalsy;
}
function getMembers() {
console.log(members);
}
function removeFalsy() {
@kru
kru / closure.js
Last active Feb 26, 2018
closure
View closure.js
var myAwesomeModule = function(x) {
return function() {
var y = x * 10;
console.log(y);
};
};
var multiplyBy100 = myAwesomeModule(10);
var multiplyBy25 = myAwesomeModule(2.5);
View install java 8 mac os 10.13
### React Native 0.48 still can't using java 9
make sure you have brew installed
```/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"```
`brew tap caskroom/version`
`brew cask install java8`
@kru
kru / response.json
Created May 19, 2017
response from the endpoint staging
View response.json
{
"data": {
"type": "persons",
"id": "52",
"attributes": {
"prefix": "Dr.",
"first_name": "Carley",
"middle_name": "Rosemarie",
"last_name": "McClure",
"preferred_name": "Darrion McClure",
@kru
kru / request.json
Last active May 19, 2017
request to the endpoint staging
View request.json
{
"data": {
"attributes": {
"first_name": "Carley"
},
"relationships": {
"object-custom-fields": {
"data": [
{
"attributes": {
You can’t perform that action at this time.