Skip to content

Instantly share code, notes, and snippets.

View gregorynicholas's full-sized avatar
💀
alter.

gregory nicholas gregorynicholas

💀
alter.
View GitHub Profile
@gregorynicholas
gregorynicholas / discordpy_AnimeInfoPagination.py
Created June 6, 2018 13:00 — forked from noaione/discordpy_AnilistPagination.py
Discord.py Pagination example for anyone to use. I'm using it for Anime list API from Kitsu.io that have multiple list of data (json format)
import aiohttp
import asyncio
import json
import discord
from discord.ext import commands
"""
Variable
"""
@gregorynicholas
gregorynicholas / progress.py
Created June 6, 2018 12:59 — forked from vladignatyev/progress.py
Python command line progress bar in less than 10 lines of code.
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#
@gregorynicholas
gregorynicholas / Joey-Burzynski.md
Created June 6, 2018 12:54 — forked from JoeyBurzynski/Joey-Burzynski.md
Joey Burzynski: Search Marketing Strategist / SEO Expert / Full Stack Developer / CTO @ MarketKarma in Miami, Florida

Joey Burzynski Connect with SEO expert Joey Burzynski on CodeMentor

SEO Expert / Full Stack Developer / Founder of MarketKarma & CouponMate

I drive revenue. All other metrics pale in comparison. I have over 20 years experience with Internet and web-based technology. My core competencies include web and application development, Amazon Marketplace optimization, affiliate marketing and organic search marketing strategy.

I have worked directly on architecting online marketing strategies, both domestic and international, for a number of Fortune 500 brands. As founder and CIO of MarketKarma, I oversee organic search strategy for all enterprise accounts and work to create innovative solutions to assist retailers in tackling their online marketing chal

@gregorynicholas
gregorynicholas / letta-power.md
Created June 6, 2018 05:10 — forked from tunnckoCore/letta-power.md
Ultimate and asynchronous control flow plugin system.

And btw, arguments passed to each plugin and their context are configurable through options.
All of this works and is reality.

app
  .use(function one (done) {
    this.one = 'one'
    // console.log('first:', this.one)
    // throw new Error('foo')
    fs.readFile('package.json', done)

Codementor React Tutorial Series -- From Dummy to Ninja

In this sesction, you'll learn JSX, the concept of React components, and play around with React.

Practice what you learnt by building a board game. You will learn the conecpt of states, and how to compose components.

Now you are familiar with React, you are ready to get started with Flux -- the client-side application architecture from Facebook.

@gregorynicholas
gregorynicholas / tunnckoCore-charlike.md
Created June 6, 2018 05:08 — forked from tunnckoCore/tunnckoCore-charlike.md
Charlike Mike Reagent (tunnckoCore) - info about me and links

Charlike Make Reagent [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url] Contact me on Codementor

tunnckocore.tk keybase tunnckocore [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]

@gregorynicholas
gregorynicholas / tunnckoCore-charlike.md
Created June 6, 2018 05:07 — forked from tunnckoCore/tunnckoCore-charlike.md
Charlike Mike Reagent (tunnckoCore) - info about me and links

Charlike Make Reagent [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url] Contact me on Codementor

tunnckocore.tk keybase tunnckocore [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]

from codementor import models as codementor_models
from django.db.models import Sum
payments = codementor_models.Payment.objects.all().order_by('date')
payments.count()
payments[:5]
payment_values = payments.values_list('date').annotate(total_earnings=Sum('earnings'))
payment_values.count()
payment_values[:5]
@gregorynicholas
gregorynicholas / leaderboard.js
Created June 4, 2018 19:05 — forked from ryanflorence/leaderboard.js
Meteor.js Leader board example and some initial thoughts
// Set up a collection to contain player information. On the server,
// it is backed by a MongoDB collection named "players."
Players = new Meteor.Collection("players");
if (Meteor.is_client) {
Template.leaderboard.players = function () {
return Players.find({}, {sort: {score: -1, name: 1}});
};