Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Ankit Chandawala nerandell

:shipit:
View GitHub Profile
View test_detox_demo.js
export default class App extends Component {
constructor(props) {
super(props);
this.toggleVisibility = this.toggleVisibility.bind(this);
this.state = {
isSecretVisible: false
};
}
toggleVisibility() {
@nerandell
nerandell / detox_sample_app.js
Last active Mar 5, 2019
Sample component for detox testing
View detox_sample_app.js
export default class App extends Component {
constructor(props) {
super(props);
this.toggleVisibility = this.toggleVisibility.bind(this);
this.state = {
isSecretVisible: false
};
}
toggleVisibility() {
View raw.json
{
"query": {
"bool": {
"should": [
{
"function_score": {
"query": {
"bool": {
"must": [
{
View socket_connector.py
'''
This is a minimal python chat client which connects to the `rooms:lobby` topic.
The server is supposed to be
http://www.phoenixframework.org/docs/channels#section-tying-it-all-together
'''
from __future__ import print_function
try: # py2
get_user_input = raw_input
@nerandell
nerandell / code-review-checklist.md
Last active Jan 18, 2022
PHP Code Review Guidelines
View code-review-checklist.md

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers
@nerandell
nerandell / BuildPoeticAPIs.md
Last active Jan 28, 2016
Build Poetic APIs
View BuildPoeticAPIs.md

Build Poetic APIs

Steps to follow

  • Architecture Astrautics
    • Inventing rather than extracting - Don't invent a libray, extract it out.
  • Consistency
    • Think like a wise man, speak in the language of common men
    • Don't be syntactically clever.
    • Warning Signs
      • Frequent references to your own docs and source