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 print_log(const char *__s) { | |
size_t max_length = 19; | |
char __trimmed[20]; // 19 characters + 1 for null terminator. | |
size_t len = strlen(__s); | |
size_t i; | |
// Copy characters up to max_length or until the end of the string. | |
for (i = 0; i < max_length && i < len; ++i) { | |
__trimmed[i] = __s[i]; | |
} |
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
King_of_Dragons jotted down notes from sit-down at Blizzards WoW preview: | |
Features/Misc | |
hour and a half to go from bottom to top of Azeroth | |
2 continents, Azeroth and Kalimdor | |
PVP will be consensual, 90% of world is non-pvp, 10% is | |
the Stranglethorn Arena will be player pvp. Players can buy tickets to fight dragons, hyrdras, etc. | |
Multiple players can fight a monster at once, but there will be limits. | |
Team battles, either groups vs groups or groups vs monster(s) | |
Guild battles planned, will be advertise |
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
-- EzDismount : A quick and dirty dismounting mod, useful for PVP or herb/ore collecting | |
-- By Gaddur of the Eonar Server | |
-- Modified v2.01 by nathan | |
-- Added Turtle support by Grender (Rakkata) from Elysium | |
local EzDClass | |
local EzDPlayer | |
EzDismount_ver = "v2.04"; | |
EzDismount_fullver = ("EzDismount " .. EzDismount_ver); |
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.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
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 requests | |
TOR_CHECK_URL = 'https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1' | |
IPIFY_API_URL = 'https://api.ipify.org' | |
def check_tor(): | |
ip = requests.get(IPIFY_API_URL).text | |
tor_exit_node_list = requests.get(TOR_CHECK_URL).text | |
return ip in tor_exit_node_list |
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 javax.imageio.ImageIO; | |
import java.awt.geom.AffineTransform; | |
import java.awt.image.AffineTransformOp; | |
import java.awt.image.BufferedImage; | |
import java.awt.image.WritableRaster; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; |
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
from bs4 import BeautifulSoup | |
import requests | |
def start_requests(): | |
urls = [ | |
'http://emoji.codes/family?c=people', | |
'http://emoji.codes/family?c=nature', | |
'http://emoji.codes/family?c=food', | |
'http://emoji.codes/family?c=activity', | |
'http://emoji.codes/family?c=travel', |
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
public class SomeFragment extends Fragment { | |
MapView mapView; | |
GoogleMap map; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View v = inflater.inflate(R.layout.some_layout, container, false); | |
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
/* | |
* Copyright (C) 2016-20?? Daniel Morales | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
#!/usr/bin/env python | |
import socket | |
import thread | |
import time | |
HOST = "localhost" | |
PORT = 4004 | |
def accept(conn): |
NewerOlder