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
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. http://stackoverflow.com/questions/39927452/recursively-print-all-permutations-of-a-string-javascript (permutations)
2. http://www.programmerinterview.com/index.php/recursion/permutations-of-a-string/ (permutations)
3. http://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-string/ (permutations)
4. http://multimedia.ucc.ie/Public/training/cycle1/algorithms-in-python.pdf (A & DS Book in Python)
5. http://js-algorithms.tutorialhorizon.com/2015/12/01/introduction-to-backtracting/ (backtracking)
6. https://www.redgreencode.com/recursion-see-recursion/ (recursion)
7. http://www.htdp.org/2003-09-26/Book/curriculum-Z-H-1.html#node_toc_start (CS Book)
8. http://stackoverflow.com/questions/717725/understanding-recursion (understanding recusion)
9. https://cses.fi/book.html (book)
View keybase.md

Keybase proof

I hereby claim:

  • I am cnicolaou on github.
  • I am cnicolaou (https://keybase.io/cnicolaou) on keybase.
  • I have a public key ASBFP7NXhX9M-4u12JfBQUwN5peg3tR5O8uW1P_mWW5F5Qo

To claim this, I am signing this object:

@stowball
stowball / front-end-guidelines.md
Last active Mar 17, 2020
Front-End Guidelines
View front-end-guidelines.md
@omaraboumrad
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
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('http://stoysnetcdn.com/ingr/ingr', productidentifier/b221[contains(., '03')]/following-sibling::b244, '/ingr', productidentifier/b221[contains(., '03')]/following-sibling::b244, '.jpg')",
"product_full_image": "concat('http://stoysnetcdn.com/ingr/ingr', productidentifier/b221[contains(., '03')]/following-sibling::b244, '/')",
@bhtucker
bhtucker / upsert.py
Last active Mar 20, 2020
A demonstration of Postgres upserts in SQLAlchemy
View upsert.py
"""
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
leonardofed / README.md
Last active Mar 27, 2020
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


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.


View Principles-of-Adult-Behavior.md

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.