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 <math.h> | |
int main() | |
{ | |
unsigned int *primes; | |
unsigned int primesCount=1, primesLimit=16; | |
unsigned int primeNeeded; |
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
//Eliminate all whitespaces possible give me 820 bytes. Long way to target.... | |
class ExtraPledge { | |
public static void main(String[] args) throws java.io.IOException{ | |
byte[]a=new byte[790]; | |
Runtime.getRuntime().exec( | |
new String[]{ | |
"sh", | |
"-c", | |
"echo H4sICMN1mFYCA2EAbZJNjtswDIX3OgV3aYFpLlG0QHoLWqJjorLoinQ8vn0p2ZkfYJamqY987/EGS6Z0J7AJDehBdYelyr3iDBvbBPMOBWcCKcAGOmHOMBBslc2owLDDTOEbltQ6o/zA1Sap+gI8Apb9O7RfHX6Dcc15h7UkqmpHnZ7TruHXp+E30HWYP46kYlzJAT5ItgKb1L8Oy6QK4qS6sVJAs8rDapSuzvg0y3fAiIlmjpBYJymk5vLEXJ1zucS8JtIQZdm53A8qLCTu0UX7wBdwNmBWARzIrLWBVBgxcmbDVni+v8JPSaezrKA8c8YKJs2YE95FqrLbu6BaQy2V1LWGjV33ncwXhFgpuRebo1pG3Th6XTIWnyjlK6ne4osUpX8rlegBjl+q98UQ3PHUOy6/LzDKwY8ZVZ0cnhcikOghRi0AGr3NtBUzYS3Nhz/4wHYQ7Tba95FTOBNtqDNM9YgeHeixYrsjO78TGXLuN9Mob9ehoWt6iyrKvHCm3kivFD1vr9VK0fJ+ZlTdIlTOe3i3Bgd/1G52V8pjf36GfMyZve8a/gOvst2vFQMAAA|base64 -d|gzip -cd" | |
} |
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> | |
int main() { | |
int input, tmp; | |
int reversedInput = 0; | |
printf("A number: "); | |
scanf("%d", &input); | |
tmp = input; |
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 _ = require('lodash'); | |
function sumSeq(data) { | |
var groups = _(data).groupBy('group').map(function(value) { | |
return { | |
members: _.orderBy(value, ['seq'], ['desc']), | |
sumSeq: _.sumBy(value, 'seq') | |
}; | |
}).orderBy(['sumSeq'], ['desc']).value(); | |
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 <stddef.h> | |
typedef struct { | |
char name[128]; | |
int max_hp; | |
int current_hp; | |
} Charactor; | |
#define SAVE_FILENAME "gamedata.bin" |
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 <stddef.h> | |
typedef struct { | |
char name[128]; | |
int max_hp; | |
int current_hp; | |
} Charactor; | |
#define SAVE_FILENAME "gamedata.bin" |
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
--- mir-0.24.1+15.04.20160928.orig/src/platforms/android/client/egl_native_surface_interpreter.cpp | |
+++ mir-0.24.1+15.04.20160928/src/platforms/android/client/egl_native_surface_interpreter.cpp | |
@@ -59,7 +59,9 @@ | |
void mcla::EGLNativeSurfaceInterpreter::dispatch_driver_request_format(int format) | |
{ | |
- driver_pixel_format = format; | |
+ if (driver_pixel_format == -1 || driver_pixel_format == 0 || format == 0) | |
+ driver_pixel_format = format; | |
+ //TODO: pass format changes to server |
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
function find(obj) { | |
//what argument do I have? | |
console.log(obj); | |
} | |
var req = { | |
body: { | |
username: "peat", | |
password: "123456" | |
} |
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
/* | |
* Author: Ratchanan Srirattanamet | |
*/ | |
int Menable = 6; //PWM capable | |
int MdriveA = 5; | |
int MdriveB = 4; | |
int delaytime = 300; | |
void setup() { |
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 java.util.*; | |
public class ParseString { | |
public static ArrayList<String> parse(String input) { | |
ArrayList<String> result = new ArrayList<>(); | |
String[] splitInput = input.split(","); | |
for (int i = 0; i < splitInput.length; i++) { | |
String s = splitInput[i].trim(); |
OlderNewer