Skip to content

Instantly share code, notes, and snippets.

View goatandsheep's full-sized avatar
⛸️
carving my own path

Kemal Ahmed goatandsheep

⛸️
carving my own path
View GitHub Profile
{
"version" : "2017-02-28",
"operation" : "Scan",
"limit" : 1,
"filter" : {
"expression": "#filt = :val",
"expressionNames" : {
"#filt" : "parentId"
},
"expressionValues" : {
#if(${context.identity.username} != ${context.args.parentId})
$utils.unauthorized()
#else
## any operation here
#end
#if(${ctx.identity.username} != ${context.result.parentId})
$utils.unauthorized()
#else
$util.toJson($ctx.result)
#end
#if(${context.identity.username} != ${context.arguments.parentId})
$utils.unauthorized()
#else
{
"version" : "2017-02-28",
"operation" : "UpdateItem",
"key" : {
"childId": $util.dynamodb.toDynamoDBJson($ctx.args.childId),
"parentId": $util.dynamodb.toDynamoDBJson($ctx.identity.username)
},
types Mutation {
updateChild( childId: ID!, parentId: ID!, firstname: String, lastname: String,): Child
}
type Subscription {
onUpdateChild(parentId: ID!, childId: ID!): Child
@aws_subscribe(mutations: ["updateChild"])
}
SOFTWARE CONSULTING AGREEMENT
THIS AGREEMENT is entered into on <contract date> by and between Avie, LLC, (hereinafter "Developer") and <client company>, (hereinafter "Company").
RECITALS
WHEREAS, Company wishes to retain Developer to develop certain <software type> software (hereinafter defined and referred to as “Software”); and
WHEREAS, Developer has agreed to develop Software for the Company according to the terms and conditions contained herein.
@goatandsheep
goatandsheep / scrapage.html
Created January 29, 2017 11:01
<tr>(\s)+<td>(\d)+</td>(\s)+<td>(\w)+</td>
This file has been truncated, but you can view the full file.
<table border="1" width="100%" cellpadding="5" id="table1" style="border-collapse: collapse" bordercolor="#999999">
<tbody><tr>
<td align="center" colspan="4"><b>Frequency</b></td>
<td width="3" bgcolor="#999999">&nbsp;</td>
<td align="center" colspan="3"><b>Alphabetical</b></td>
<td width="3" bgcolor="#999999">&nbsp;</td>
<td align="center" colspan="2"><b>Part of Speech (PoS)</b></td>
</tr>
<tr>
<td></td>
@goatandsheep
goatandsheep / redirect.html
Last active January 27, 2017 01:02
Replace <%= link %> with your URL
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>You are being redirected - communote</title>
</head>
<body>
<p>You are currently being redirected to: <%= link %></p>
<a href="<%= link %>">If you are not redirected, please click here </a>
<meta http-equiv="refresh" content="0;URL='<%= link %>'" />

Adding features to existing packages

  1. First think about how to clearly define the feature that you want and how it could be done in the language you need it in
  2. Should you split up?
  3. How eagerly do you want it?
  4. Maybe there's a reason why it hasn't been added.
  5. Post the feature as an issue in the package. Have a discussion with the author.
  6. If the author doesn't want the feature, then you can either fork the package or start from scratch.
  7. If you fork the package for separating or for future merging
  8. take some time to learn the existing style of the package:

##Payment Information

###Acronyms

  • Electronic Fund Transfer (EFT):
  • Payment Service Provider (PSP): account type that results in processing an online application

##ToS

You need to have generated a provider id first.