Skip to content

Instantly share code, notes, and snippets.

View sjbodzo's full-sized avatar
✝️

Jess Bodzo sjbodzo

✝️
  • FL
View GitHub Profile
@sjbodzo
sjbodzo / SimpleRegexPractice.java
Created November 13, 2013 19:57
simple regex practice
class RegexUtility {
public static String[] matches(String pattern, String[] words) {
String s = pattern;
for (int i = 0; i < words.length; i++) {
if (!(words[i].matches(pattern))) words[i] = null;
}
return words;
}
}
@sjbodzo
sjbodzo / cppNumVars.cpp
Created October 16, 2013 03:46
Website Code Fragment #1 - numerical variable type examples in C++
int x = 135; //stores the value 135 in an int variable named x
float y = 13.5f; //stores the float value 13.5 in a float variable named x
float z = 1.39e22; //stores the float value 1.39*10^22 in a float variable named z
long double a = 1.2345L; //stores the long double value 1.2345