Skip to content

Instantly share code, notes, and snippets.

View lolgolflol's full-sized avatar

Watcharapon Sarnsanit lolgolflol

View GitHub Profile
@lolgolflol
lolgolflol / update all child one save
Last active December 21, 2015 17:18
I would like update all object that was child of User
class User
has_many :users_notes
has_many :notes, :through => :users_notes
end
class UsersNote
belongs_to :user
bolongs_to :notes
end
### Keybase proof
I hereby claim:
* I am lolgolflol on github.
* I am watcharapon (https://keybase.io/watcharapon) on keybase.
* I have a public key ASAf4hPt2E_Q4BGeyEJyKHmm69DXJdcGQyUmJXU05nZeAwo
To claim this, I am signing this object:
@lolgolflol
lolgolflol / a.html
Last active August 9, 2018 16:46
exmaple
<form>
<a href="" class="logo">
<img src="dist/images/30297ffca03d300a30b7590b978e0a8c-six-wallet-logo.png" alt="">
</a>
<article class="description">
<h3>Create your new wallet</h3>
</article>
<dl>
<dd>
<label class="txtfield icon">
<form>
<a href="" class="logo">
<img src="dist/images/30297ffca03d300a30b7590b978e0a8c-six-wallet-logo.png" alt="">
</a>
<article class="description">
<h3>Create your new wallet</h3>
</article>
<dl>
<dd>
<label class="txtfield icon">
stack user-api-v1
user-api -> aaa.aws.com/prod
- /account/create
- /account/verify/email
- /account
-> changes
- /create
- /verify/email
- /
stack wallet-api-v1
package main
import (
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go/service/dynamodb"
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cognitoidentityprovider"
)
{
Auth: {
isLoggedIn: true,
loggingIn: false,
loggingFacebook: false,
loggingGoogle: false,
isRegister: false,
initPin: true,
type: 'USERS_LOGIN_SUCCESS',
username: 'way',
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go/service/dynamodb"
)
{
"type": "REQUEST",
"methodArn": "arn:aws:execute-api:ap-southeast-1:082007557883:syz4qx1ef8/prod/GET/lambda-request",
"resource": "/lambda-request",
"path": "/lambda-request",
"httpMethod": "GET",
"headers": {
"accept": "application/json, text/plain, */*",
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-US,en;q=0.9,th;q=0.8",