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
// Snippet of Gradle config to run the binary scanner | |
configurations { | |
binaryScanner | |
} | |
dependencies { | |
//... | |
binaryScanner 'com.ibm.websphere.appmod.tools:binary-app-scanner:22.0.0.1' | |
} |
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
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
import okhttp3.Response; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
import javax.tools.JavaCompiler; | |
import javax.tools.ToolProvider; |
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
/* MINIMALLY UPDATED TO COMPILE UNDER LLVM. CHECK FIRST REVISION FOR UNEDITED VERSION */ | |
/* sorting benchmark--calls randomly the number of times specified by MAXNUM | |
to create an array of long integers, then does a quicksort on the array of longs. | |
The program does this for the number of times specified by COUNT | |
*/ | |
#include "stdio.h" | |
#define MAXNUM 100 |
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
def fart(strength): | |
print 'pbt' + 'bt'*strength | |
fart(1) | |
fart(5) | |
fart(10) | |
fart(100) //strips paint |
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
/* Write an image out to disk in PPM format (P6 variant). | |
* Will exit if file could not be opened for writing. | |
* | |
* the_image: Pointer to a ppm_image struct (see ppm.h) containing the image data to be written. | |
* outfilepath: String containing the file path that should be written to. | |
*/ | |
void write_image(ppm_image *the_image, char *outfilepath) { | |
FILE *outfile; | |
if ((outfile = fopen(outfilepath, "w")) == NULL) { | |
fprintf(stderr, "There was a problem opening the output file %s.\n", outfilepath); |
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
// | |
// main.c | |
// 2fast2fizzbuzz | |
// | |
#include <stdio.h> | |
#include <pthread.h> | |
#include <sched.h> | |
typedef struct { |
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
run: | |
Waiting for connections on Port #23657 | |
A connection to a client is established! | |
Waiting for connections on Port #23657 | |
UPLOAD coldjava.Test HTTP/1.1 | |
Content-Length: 151 | |
protocol: test | |
Compiling ... |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <GL/glfw.h> | |
#include <math.h> | |
// The basic idea of a vertex shader is that it takes in vertices, which have attributes | |
// like position and color, and does the operations specified in the shader's main method on them. | |
// It then passes the results of that on to the fragment shader. | |
// Holds the position and color of each vertex which will comprise the two triangles. | |
typedef struct { |