This file contains hidden or 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 <windows.h> | |
| #include <stdio.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| HANDLE mutex = CreateMutexA(NULL, TRUE, "ROBLOX_singletonMutex"); | |
| puts("Enter 'q' to quit"); | |
| while (getchar() != 'q'); |
This file contains hidden or 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
| // https://www.reddit.com/r/dailyprogrammer/comments/5e4mde/20161121_challenge_293_easy_defusing_the_bomb/ | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #define BITMASK(n) ((1 << (n)) - 1) | |
| uint64_t rules = 0b001010100001010000001010001110111100; | |
| // the rules integer should be as follows | |
| // 001111 011100 010100 000010 100001 010100 |
This file contains hidden or 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
| /* | |
| cool atbash cipher | |
| by alureon | |
| */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) { | |
| if(argc < 2) { |
This file contains hidden or 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
| /* | |
| https://www.reddit.com/r/dailyprogrammer/comments/4oylbo/20160620_challenge_272_easy_whats_in_the_bag/ | |
| by alureon | |
| */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> |
This file contains hidden or 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
| package thingy; | |
| import java.util.ArrayList; | |
| public class Main { | |
| public static int size = 9; | |
| public static String repeatString(String str, int amt) { | |
| for(int i=0;i<amt-1;i++) { |
This file contains hidden or 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
| // k0mstscript.cpp : Defines the entry point for the console application. | |
| #include "stdafx.h" | |
| #include <windows.h> | |
| #include <tlhelp32.h> | |
| #include <iostream> | |
| int scriptOffset = 0xCB0929; | |
| int integrityOffset = 0x43589; | |
| BYTE machineCode[] = {0xC7, 0x04, 0x24, 0x00, 0x00, 0x00, 0x00, 0xC7, 0x42, 0xD4, 0x64, 0x6F, 0x66, 0x69, 0xC7, 0x42, 0xD8, 0x6C, 0x65, 0x28, 0x27, 0xC7, 0x42, 0xDC, 0x72, 0x62, 0x78, 0x61, 0xC7, 0x42, 0xE0, 0x73, 0x73, 0x65, 0x74, 0xC7, 0x42, 0xE4, 0x3A, 0x2F, 0x2F, 0x2E, 0xC7, 0x42, 0xE8, 0x2E, 0x2F, 0x2E, 0x2E, 0xC7, 0x42, 0xEC, 0x2F, 0x2E, 0x2E, 0x2F, 0xC7, 0x42, 0xF0, 0x44, 0x73, 0x61, 0x2E, 0xC7, 0x42, 0xF4, 0x74, 0x78, 0x74, 0x27, 0xC7, 0x42, 0xF8, 0x29, 0x20, 0x2D, 0x2D, 0xE9, 0x00, 0x00, 0x00, 0x00}; |
This file contains hidden or 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
| _valid_key=function(object,key) | |
| return object[key],key; | |
| end; | |
| _new=function(class) | |
| return function(props) | |
| if(type(list_base_props)=='table')then | |
| for i,v in next,list_base_props do | |
| if(props[i]==nil)then | |
| props[i]=v; |
This file contains hidden or 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
| local user=game:service'Players'.LocalPlayer; | |
| local cam=workspace.CurrentCamera; | |
| local mouse=user:GetMouse(); | |
| local char=user.Character; | |
| local torso=char.Torso; | |
| ---------------------------------------------------------------------------------------------------- | |
| _G.DRAW3DVERSION=(_G.DRAW3DVERSION or 0); |
This file contains hidden or 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
| --> Sinfully's Class System 1.0 | |
| _G=_G or {}; | |
| function clone(t) | |
| if(type(t)~='table')then return t end; | |
| local res={}; | |
| for i,v in pairs(t) do res[clone(i)]=clone(v) end; | |
| setmetatable(res,getmetatable(t)); | |
| return res; | |
| end; | |
| function _G.Check(Table,Value) for k,v in pairs(Table) do if(v==Value)then return true end end end; |
This file contains hidden or 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 urllib2, urllib, re, threading | |
| class checkSite(threading.Thread): | |
| def __init__(self, site): | |
| threading.Thread.__init__(self) | |
| self.site = site | |
| def run(self): | |
| try: | |
| g = urllib.urlopen(self.site+"'").read() | |
| m = re.findall('<b>Warning</b>: ', g) #feel free to change to a more defining pattern |