Skip to content

Instantly share code, notes, and snippets.

Avatar

Iain Maitland gl2748

View GitHub Profile
@gl2748
gl2748 / condenser_community_role_editor.md
Created Sep 9, 2019
Condenser community functionality.
View condenser_community_role_editor.md
  1. Pin Post functionality.
  • E.g. ability to pin a post.
    • link on post, and when the user clicks it it will submit a custom op.
    • Tim will see how it goes with Jonathan.
  1. Role editor page.
  • Within a community 2 things you can do to user.
  • give role, or give them a title.
  • page that shows users with roles, as well as user titles.
  • The ability to add users with a certain role.
@gl2748
gl2748 / kortxt_roadmap.md
Last active Mar 31, 2019
kortxt roadmap
View kortxt_roadmap.md
  • Infinite scroll.
  • Setup kortxt specific post submission, url/post.
  • Add indicator for vote/comment transaction processing.
  • Update post vote count on vote.
  • Enable voting on comments.
  • Enable moderation on comments.
  • User config - User configurable default weight for vote actions on posts and comments.
  • Cloudfront config and publish to https://kortxt.com
  • Customize signup form and include validation errors.
  • Switch steem-connect app to kortxt.app not you.app
@gl2748
gl2748 / ch7.txt
Created Mar 22, 2019
Notes from CH7. Poäng club.
View ch7.txt
Last login: Fri Mar 22 11:13:13 on ttys003
Hello, / /\ / /\/
~
👺 curl -X GET https://x5cbx9cqs8.execute-api.us-west-2.amazonaws.com/development/posts
Internal Server Error~
🐸 curl -X GET https://x5cbx9cqs8.execute-api.us-west-2.amazonaws.com/development/posts
Internal Server Error~
🐸 curl -X GET https://x5cbx9cqs8.execute-api.us-west-2.amazonaws.com/development/posts
[{"id":"ab7c7876-fb47-4ac8-a4bd-b2ff0ad3a2cf","author":"alice","permlink":"hello-world","originalID":"1","tag":"funny","createdAt":"2019-03-22T05:13:42.093Z","updatedAt":"2019-03-22T05:13:42.093Z"},{"id":"f756c1f7-2a8f-4830-9763-47cf88629602","author":"bob","permlink":"foobar","originalID":"2","tag":"funny","createdAt":"2019-03-22T05:13:42.093Z","updatedAt":"2019-03-22T05:13:42.093Z"}]~
👺 curl -X GET https://x5cbx9cqs8.execute-api.us-west-2.amazonaws.com/development/posts
@gl2748
gl2748 / map_reduce_proxy.js
Last active Mar 5, 2019
use proxy to add map and reduce array methods to an object in javascript
View map_reduce_proxy.js
const o = {
x: {
v: "hello"
},
y: {
v: "world"
}
};
const handler = {
View compose.js
const x = 10
const add = p => q => p + q;
const add1 = add(1)
const add2 = add(2)
// Note that here the accumulating value is itself a function.
const reducer = (acc, curr) => (...args) => {
return curr(acc(...args));
View works.md
            case 'fingerprint':
            debugger
                /* Does not work
                andList.push(
                  sequelize.query("SELECT * FROM `users` WHERE JSON_EXTRACT(fingerprint, '$.ref') = 'https://jsfiddle.net/' " , { type: sequelize.QueryTypes.SELECT})
                )
                */
               //User.findAll({
                //where: {
                  //$and: [
@gl2748
gl2748 / generate_link.js
Last active May 4, 2018
get approval link
View generate_link.js
@gl2748
gl2748 / processed1.txt
Created Apr 26, 2018
Profile of Condenser Server Node.js
View processed1.txt
Statistical profiling result from isolate-0x391fdb0-v8.log, (5513 ticks, 179 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
75 1.4% /lib/x86_64-linux-gnu/libc-2.24.so
5 0.1% [vdso]
4 0.1% /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
[JavaScript]:
ticks total nonlib name