Skip to content

Instantly share code, notes, and snippets.

View guinetn's full-sized avatar

Guinet Nicolas guinetn

View GitHub Profile
@guinetn
guinetn / tasks.json
Created May 22, 2019 09:57 — forked from wolf99/tasks.json
Visual Studio Code tasks.json for GCC
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
"version": "0.1.0",
@guinetn
guinetn / magnitde.csv
Created January 9, 2019 14:35 — forked from ainsleymcgrath/magnitude.csv
A simple dataset to demonstrate exactly how briefly we've been present in the universe.
Stretch Name Start Year End Year
The Universe -14500000000
Sun as Main Sequence Star -4500000000 5500000000
Earth as a Physical Planet -4400000000 5500000000
Earth with Liquid Water -4400000000 1000000000
Prokaryotes -4000000000
Photosynthesis -3500000000
O2 Rich Atmosphere -2300000000
Eukaryotes -2200000000
Multicellular Life -1500000000
@guinetn
guinetn / table.html
Created January 9, 2019 12:14 — forked from etigui/table.html
Creating HTML table dynamically using javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Table</title>
</head>
<body>
<div id="myDivTable"></div>
@guinetn
guinetn / EasyWriteCSV.py
Created January 8, 2019 11:17 — forked from pareksha/EasyWriteCSV.py
Easy write on csv file using python (with simple file open and file write commands)
# Make directory if it doesn't exist
directory = 'media/csvs/'
if not os.path.exists(directory):
os.makedirs(directory)
path = directory + 'student_data.csv'
csvFile = open(path, 'w')
csvFile.write('Name,Contact Number,email\n')
# Iterate through queryset or list and do the following for each iteration
@guinetn
guinetn / PowerShell-profile.ps1
Created November 3, 2016 20:15 — forked from PierreMage/PowerShell-profile.ps1
Make your Windows command line better with doskey
# http://technet.microsoft.com/en-us/library/ee692685.aspx
# F7 = history
# Alt+F7 = history -c
# F8 = Ctrl+R
Set-Location C:
# Easier navigation
Set-Alias o start
function oo {start .}