I hereby claim:
- I am Gigabyte-Giant on github.
- I am gigabytegiant (https://keybase.io/gigabytegiant) on keybase.
- I have a public key whose fingerprint is 0B33 284A 2843 5149 0497 CAA6 9FC8 2EB6 B679 C12C
To claim this, I am signing this object:
var getTime = function() { | |
var _date = new Date(); | |
var hours = _date.getHours(); | |
var minutes = _date.getMinutes(); | |
var am_pm = (hours >= 12 ? "PM" : "AM"); | |
return Math.round(hours / 12) + ":" + minutes + " " + am_pm; | |
}; |
1 | |
2 | |
Fizz | |
4 | |
Buzz | |
Fizz | |
7 | |
8 | |
Fizz | |
Buzz |
var testCases = [ | |
["aab", "baa"], | |
["bac", "bbc"] | |
]; | |
var isAnagram = function(first, second) { | |
return ( | |
first.split("").sort().join("") === second.split("").sort().join("") | |
); | |
}; |
I hereby claim:
To claim this, I am signing this object:
// This is supposed to be an implementation of C's "strcmp" function, | |
// but it looks like something is missing... | |
int strcmp(c_string s1, c_string s2) | |
{ | |
const size_t str1_len = strlen(s1); | |
const size_t str2_len = strlen(s2); | |
if (str1_len < str2_len) | |
{ | |
return -1; |
// ...taken from one of my other projects-- also using sass/scss. | |
var gulp = require("gulp"); | |
var sass = require("gulp-sass"); | |
// This will watch for changes in the directory that you specify, apply sass, and output it to the directory you specify. | |
gulp.task("styles", function() { | |
gulp.src("<your sass directory>") | |
.pipe(sass().on("error", sass.logError)) | |
.pipe(gulp.dest("<your output directory>")); | |
}); |
/* MACHINE_WORD is the word size of the processor. It can be determined, by multiplying the size of a long, by 8. */ | |
#define MACHINE_WORD sizeof(long) * 8 |