This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section .text,"ax","progbits" | |
.file "foo.c" | |
.section .text | |
.align 4 | |
.globl foo | |
.type foo,@function | |
foo: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section .text | |
.align 4 | |
.globl foo | |
.type foo,@function | |
foo: | |
.foo: | |
STG GPR14,112(,GPR15) | |
STMG GPR7,GPR11,56(GPR15) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void doFractal(float xpos, float ypos, float zoom = 1.0f) | |
{ | |
//doing Mandelbrot | |
Mandelbrot m(maxIter, escape); | |
const float scale = 1.0f / zoom; | |
const float floatWidth = 3.5f * scale; //zoom = 1 should be -2.5 to 1 in X | |
const float floatHeight = floatWidth * static_cast<float>(height) / static_cast<float>(width); | |
const float minX = xpos - (floatWidth * 0.5f); | |
const float minY = ypos - (floatHeight * 0.5f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
void printMatrix3x3(float *mat) | |
{ | |
printf("%0.3f\t%0.3f\t%0.3f\n", mat[0], mat[1], mat[2]); | |
printf("%0.3f\t%0.3f\t%0.3f\n", mat[3], mat[4], mat[5]); | |
printf("%0.3f\t%0.3f\t%0.3f\n", mat[6], mat[7], mat[8]); | |
printf("\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void fizzbuzz(int n) | |
{ | |
static bool firstRun = true; | |
if(firstRun) | |
{ | |
std::sort(table); | |
firstRun = false; | |
} | |
char buffer[MAX_CHAR]; | |
buffer[0] = '\0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 200 OK | |
X-Transaction: | |
a09713e0086a75d9 | |
X-RateLimit-Remaining: | |
19997 | |
Content-Length: | |
1807 | |
X-RateLimit-Limit: | |
20000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int mask = (1 << __popcnt(v)) - 1; | |
return (~n) & mask; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj = { | |
val: 0, | |
double: function() { | |
function helper() { | |
this.val += this.val; //this refers to global scope | |
} | |
helper(); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned int djb2(const char *text, int len) | |
{ | |
unsigned int hash = 5381; | |
int c; | |
while(c = *text++) | |
hash = ((hash << 5) + hash) + c; | |
return hash; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What happened that you started to play with you jojo? | |
In elementary school I started to spend with me jojo I had | |
been give n and then I went online and saw videos of people | |
do disgusting fl Ott tricks. I wanted to immediately learn that trick | |
so I ordered me a good jojo online and started training me | |
in full. After two years I was a good single on it and then | |
way has been upward. | |
What do you have to be able with jojo? | |
You have to have ngrafi fi mi and so this is all muscle memory. | |
Patience is also important because some tricks are very annoying |