Skip to content

Instantly share code, notes, and snippets.

View Chadtech's full-sized avatar

Chadtech Chadtech

  • SuperFocus.ai
  • Pennsylvania
View GitHub Profile
sayHi = function(){
console.log('Hi');
}
sayHello = () => {
console.log('Hello');
}
sayHey = function(someone){
sayHi = ->
console.log 'Hi'
sayHello = =>
console.log 'Hello'
sayHey = (someone) ->
console.log 'Hey ' + someone
sayHey 'guys'
React = require 'react'
# DOM Elements
{p, div, input} = React.DOM
module.exports =
Column: (content) ->
package main
import (
// "bufio"
// "fmt"
// "io"
// "io/ioutil"
"strconv"
"os"
"math"
_ = require 'lodash'
#
# Good ol' while statement
#
bunchOfNumbers = [0 .. 1000000]
@Chadtech
Chadtech / code.md
Last active August 29, 2015 14:26

I have been revisiting some of my old code, and naturally, I wonder if I have written good and readable code. I have settled on my own style, that is original. It being original, makes me especially doubtful of it. So I am asking you, is this style any good? And if not, why not?

My style has these two properties:

0 Variable names are as descriptive as possible, making them very long, and often complete sentences of camel case words.

1 Areas of code are seperated by large sections of comments that describe how the code works.

Here is an example: code style example

sys = require 'util'
stdin = process.openStdin()
console.log 'hell ye type codes n shit'
stdin.addListener 'data', (d) ->
console.log 'ye dope ', d.toString().trim()
# Your terminal will read the following, with the input 'ye \n dope \n'
# hell ye type codes n shit
# ye
cp = require 'child_process'
say = (what) ->
cp.execSync 'say ' + what
@Chadtech
Chadtech / gitYe.md
Last active October 20, 2015 21:25

Yeah so to make a new branch I use the command

git checkout -b branch name

Then do push to that branch specifically is..

git push origin branch name

So once a branch is updated, github often gives you the opportunity to automatically merge, but if it doesnt then you can do 'new pull request'. When I say 'never push to master', I really mean never. The changes get merged into master through a pull request, rather that pushing directly.

primary1Color: '#BDBDBD',
primary2Color: '#455A64',
primary3Color: '#263238',
accent1Color: '#B0BEC5',
accent2Color: '#CFD8DC',
accent3Color: '#78909C',
textColor: '#ffffff',
alternatveTextColor: '#ffffff', // Prolly should change this
canvasColor: '#607D8B',
borderColor: '#90A4AE',