Skip to content

Instantly share code, notes, and snippets.

View danspndl's full-sized avatar

Dan danspndl

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sdaniel55 on github.
  • I am sdaniel55 (https://keybase.io/sdaniel55) on keybase.
  • I have a public key whose fingerprint is FFBF 3B69 512C 519C C187 4DE4 2BF3 9943 2815 F55A

To claim this, I am signing this object:

@danspndl
danspndl / form.html
Created September 29, 2015 16:03
Obtaining form values
<!DOCTYPE html>
<html>
<head>
<title>Obtaining form values</title>
<meta charset="UTF-8">
</head>
<body>
<form action="" id="input" >
<p>
@danspndl
danspndl / convertStrToInt.cpp
Last active May 8, 2016 09:02
Convert string to int - C++
#include <iostream>
#include <stdlib.h> // atoi
using namespace std;
int main(){
int intVar = 0;
string stringVar = "";
stringVar = atoi(intVar.c_str());
@danspndl
danspndl / convertStrCase.cpp
Created May 8, 2016 14:18
Convert String to uppercase
#include <iostream>
#include <string>
#include <stdio.h>
#include <ctype.h>
using namespace std;
int main(){
string s="small";
int i=0;
@danspndl
danspndl / pre-commit
Created March 4, 2019 10:09
Generate PDF from Markdown files before commit
#!/bin/sh
if [ ! -d "_exports/" ]; then
mkdir "_exports/"
echo "Created _exports folder"
fi
echo "Converting..."
FOLDER=./*.md