Skip to content

Instantly share code, notes, and snippets.

View SeptiyanAndika's full-sized avatar
🏠
Working from home

Septiyan Andika SeptiyanAndika

🏠
Working from home
View GitHub Profile
@SeptiyanAndika
SeptiyanAndika / serverless.yml
Created January 16, 2018 04:03 — forked from jscattergood/serverless.yml
Creating a custom serverless resource for subscribing to SNS topics in another region
# Welcome to Serverless!
#
# Happy Coding!
service: cross-region-sns-subscriber
# Keep environment specific configurations in separate files
custom: ${file(config/${env:STAGE}.json)}
provider:
@SeptiyanAndika
SeptiyanAndika / 0-README.md
Created December 27, 2017 13:21 — forked from lstude/0-README.md
Add Indent / Outdent Functionality to Google Spreadsheets

This tutorial demonstrates how to add an "Indent Text" menu item to a Google spreadsheet so you can indent/outdent text.

  • When the "Indent Text" menu item is selected, any cells within a single column selection will be indented by 5 spaces.

  • You can increase or decrease the number of spaces the text is indented by changing the line below so that the "5" is changed to a larger or smaller number (depending on your preference):

newValues.push(['=CONCAT(REPT( CHAR( 160 ), 5),"' + values[i][0] + '")']);
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author andika
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author andika
*/
@SeptiyanAndika
SeptiyanAndika / crimbook-on-ipfs.png
Created December 19, 2017 04:22 — forked from judsonmitchell/crimbook-on-ipfs.png
Publishing My App to IPFS
crimbook-on-ipfs.png
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package test;
/**
*
0x9f4b6e89982b26e4e7c950095286614a42784b85
@SeptiyanAndika
SeptiyanAndika / sqs_receiveMessage_standart.js
Created September 28, 2017 03:49
sqs get all message type standart
var params = {
QueueUrl: {url}, /* required */
AttributeNames: [
'All'
/* more items */
],
MaxNumberOfMessages: 10, // how many messages do we wanna retrieve?
VisibilityTimeout: 30, // seconds - how long we want a lock on this job (lock message before can retreive again)
WaitTimeSeconds: 1 // seconds - how long should we wait for a message?
{
"endpoints": {
"forwarder": [{
"paths": "/users",
"method": "GET",
"service": "https://jsonplaceholder.typicode.com/users"
},
{
"paths": "/user/:id",
"params": "id",
# Welcome to Serverless!
#
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
#
# For full config options, check the docs:
# docs.serverless.com