Skip to content

Instantly share code, notes, and snippets.

View tmax818's full-sized avatar

Tyler Maxwell tmax818

View GitHub Profile
@tmax818
tmax818 / .gitconfig
Created December 17, 2018 21:05 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@tmax818
tmax818 / test.rb
Created April 24, 2019 05:18
test
puts "Hello, world!"
$ mkdir ruby //creates a new directory called ruby
$ cd ruby //makes ruby the new working directory
$ touch hello.rb //creates a new file hello.rb
$ atom . //opens the ruby directory in Atom
$ ruby hello.rb
Hello, world!
$
$ mkdir javascript //creates a new directory called javascript
$ cd javascript //makes javascript the new working directory
$ touch hello.js //creates a new file hello.js
$ atom . //opens the javascript directory in Atom
console.log("Hello, world!");
$ node hello.js
Hello, world!
$
let title = document.getElementById("title");
let button = document.querySelector(".hide");
const toggle = () => {
if (title.style.display == "none") {
console.log(title.style.display);
button.textContent = "Hide title";
title.style.display = "block";
console.log(title.style.display);
} else {
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
$ mkdir c //creates a new directory called c
$ cd c //makes c the new working directory
$ touch hello.c //creates a new file hello.c
$ atom . //opens the c directory in Atom