Skip to content

Instantly share code, notes, and snippets.

👨‍💻
django + react => new products coming soon

Lokesh Sanapalli lokesh1729

👨‍💻
django + react => new products coming soon
Block or report user

Report or block lokesh1729

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
@busypeoples
busypeoples / TypeScriptFundamentals.ts
Last active Feb 13, 2020
TypeScript Fundamentals For JavaScript Developers
View TypeScriptFundamentals.ts
// TypeScript Fundamentals For JavaScript Developers
/*
Tutorial for JavaScript Developers wanting to get started with TypeScript.
Thorough walkthrough of all the basic features.
We will go through the basic features to gain a better understanding of the fundamentals.
You can uncomment the features one by one and work through this tutorial.
If you have any questions or feedback please connect via Twitter:
A. Sharif : https://twitter.com/sharifsbeat
*/
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active Feb 21, 2020
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@evansde77
evansde77 / mock_requests.py
Last active Feb 21, 2020
Example of mocking requests calls
View mock_requests.py
#!/usr/bin/env python
"""
mocking requests calls
"""
import mock
import unittest
import requests
from requests.exceptions import HTTPError
@ursuad
ursuad / kafka-cheat-sheet.md
Last active Feb 17, 2020
Quick command reference for Apache Kafka
View kafka-cheat-sheet.md

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Describe a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic

Purge a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...

@mjsisley
mjsisley / *.html
Last active Jul 24, 2019
Webpack Config for Cookiecutter Django
View *.html
...
{% block css %}
...
{% if not debug %}
<!-- Currently, the css is included as part of javascript in development-->
<!-- This includes the built css for production (I am currently using Grunt for this) -->
<!-- If ExtractTextPlugin is configured properly, Webpack can handle separate css in development and production -->
@kwmiebach
kwmiebach / pytest.md
Last active Feb 20, 2020 — forked from amatellanes/pytest.sh
pytest cheat sheet
View pytest.md

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help:

@jhusain
jhusain / gist:4b14f5069f3a254cfa0a
Created Apr 19, 2015
Converting event to Observable
View gist:4b14f5069f3a254cfa0a
function fromEvent(dom, eventName) {
return {
forEach: function(observer) {
var handler = (e) => {
observer.onNext(e);
};
dom.addEventListener(eventName, handler);
// Subscription
return {
@staltz
staltz / introrx.md
Last active Feb 21, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@s4553711
s4553711 / gist:9488399
Created Mar 11, 2014
Some example for subprocess.Popen exception example
View gist:9488399
#!/usr/bin/python
import subprocess
import os
import sys
#res = subprocess.Popen(['ls','-al','/ahome'],stdout=subprocess.PIPE,stderr=subprocess.PIPE);
#output,error = res.communicate()
#if res.returncode:
# #raise Exception(error)
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Feb 22, 2020
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

You can’t perform that action at this time.