Skip to content

Instantly share code, notes, and snippets.

View marclave's full-sized avatar
🌻
👋 hi

Marc Laventure marclave

🌻
👋 hi
View GitHub Profile
@font-face {
font-family: 'Pixelated MS Sans Serif';
font-style: normal;
font-weight: 400;
src: url('https://unpkg.com/[email protected]/dist/ms_sans_serif.woff') format('woff');
src: url('https://unpkg.com/[email protected]/dist/ms_sans_serif.woff2') format('woff2');
}
@font-face {
font-family: 'Pixelated MS Sans Serif';
font-style: normal;
<html>
<body>
hi hello
</body>
<script>
console.log('hello, world');
</script>
</html>
@marclave
marclave / keybase.md
Last active September 19, 2017 18:37

Keybase proof

I hereby claim:

  • I am marclave on github.
  • I am marclave (https://keybase.io/marclave) on keybase.
  • I have a public key whose fingerprint is 9289 7171 D299 A7C2 8560 7386 E23D 8F8B C29E 0821

To claim this, I am signing this object:

console.log('Hello, world!');
function(partyTime) {
var a = 7;
};
Array.from({length: 20}, () => Math.floor(Math.random() * 1000));
// Unique
var arr = []
while(arr.length < 20){
var randomnumber = Math.ceil(Math.random()*1000)
if(arr.indexOf(randomnumber) > -1) continue;
arr[arr.length] = randomnumber;
Number.prototype.pad = function(size) {
var s = String(this);
while (s.length < (size || 2)) {s = "0" + s;}
return s;
}
(9).pad(); //returns "09"
// OR
@marclave
marclave / golangChannelParser.go
Created September 28, 2016 19:16
GO Channel example with parsing a file
// This function is to read the file line and parse the desired info
func sanitizeString(line string, zone string) string {
return domain
}
func parseLine(id int, messages <-chan string, wg *sync.WaitGroup, results chan<- int) {
defer wg.Done()
for line := range messages {
@marclave
marclave / arrayNoRegister.md
Created May 30, 2016 14:41
Array Register SENG440 Example

[marclave@ugls20 SENG440]$ cat arrayNoRegister.c

int main(void)
{
	int b[10];

	return 0;
}
@marclave
marclave / gist:6c37c81c4f3eb3a10a46
Created July 8, 2014 15:24
Code Golf Leibniz formula for π
for _ in[1]*input():print sum((-1.0)**x/(2*x+1)for x in range(input()))