Skip to content

Instantly share code, notes, and snippets.

View gl2748's full-sized avatar

Iain Maitland gl2748

View GitHub Profile
@gl2748
gl2748 / condenser_community_role_editor.md
Created September 9, 2019 19:16
Condenser community functionality.
  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 March 31, 2019 14:21
kortxt roadmap
  • 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 March 22, 2019 18:03
Notes from CH7. Poäng club.
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 March 5, 2019 21:55
use proxy to add map and reduce array methods to an object in javascript
const o = {
x: {
v: "hello"
},
y: {
v: "world"
}
};
const handler = {
@gl2748
gl2748 / compose.js
Last active January 17, 2019 18:48
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));
@gl2748
gl2748 / works.md
Created June 6, 2018 00:25
mysql_wworks
            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 19:53
get approval link
@gl2748
gl2748 / processed1.txt
Created April 26, 2018 19:11
Profile of Condenser Server Node.js
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