Skip to content

Instantly share code, notes, and snippets.

Constantine Nikolaou cnicolaou

Block or report user

Report or block cnicolaou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
zsherman / sitemap.js
Created Aug 23, 2017
Simple script to generate a sitemap from contentful.
View sitemap.js
import fs from 'fs'
import { getPosts } from './api/posts'
function formatDate(date) {
var d = new Date(date),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
if (month.length < 2) month = '0' + month;
View gist:8d426d82cda9047225f89684450a21fe
A. Algorithms & Data Structures
1. (permutations)
2. (permutations)
3. (permutations)
4. (A & DS Book in Python)
5. (backtracking)
6. (recursion)
7. (CS Book)
8. (understanding recusion)
9. (book)

Keybase proof

I hereby claim:

  • I am cnicolaou on github.
  • I am cnicolaou ( on keybase.
  • I have a public key ASBFP7NXhX9M-4u12JfBQUwN5peg3tR5O8uW1P_mWW5F5Qo

To claim this, I am signing this object:

stowball /
Last active Mar 17, 2020
Front-End Guidelines
omaraboumrad / config.json
Last active Dec 20, 2016
irc bot written in javascript for nodejs
View config.json
"nickname": "xnodeuser",
"username": "xnodeuser",
"hostname": "myhost",
"servername": "myserver",
"realname": "xnodeuser",
"channel": "#xnodeuser"
stnadmin / ingram-onix-conversion.json
Created Nov 21, 2016
This is used in the process of converting an ONIX XML file to a CSV file that we can digest.
View ingram-onix-conversion.json
"row-selector": "/ONIXmessage/product",
"columns": {
"product_sku": "concat('ingr', productidentifier/b221[contains(., '03')]/following-sibling::b244)",
"mfg_product_sku": "productidentifier/b221[contains(., '03')]/following-sibling::b244",
"brand_id": "publisher/b081",
"product_s_desc": "concat(title/b203,' by ',contributor/b035[contains(., 'A01')]/following-sibling::b036, ' and published by ', publisher/b081)",
"product_desc": "othertext/d102[contains(., '1')]/following-sibling::d104",
"product_thumb_image": "concat('', productidentifier/b221[contains(., '03')]/following-sibling::b244, '/ingr', productidentifier/b221[contains(., '03')]/following-sibling::b244, '.jpg')",
"product_full_image": "concat('', productidentifier/b221[contains(., '03')]/following-sibling::b244, '/')",
bhtucker /
Last active Mar 20, 2020
A demonstration of Postgres upserts in SQLAlchemy
Upsert gist
Requires at least postgres 9.5 and sqlalchemy 1.1
Initial state:
Initial upsert:
View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

leonardofed /
Last active Mar 27, 2020
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
You can’t perform that action at this time.