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
public class Test { | |
public static void main(String[] args) { | |
A a = new A(5); | |
System.out.println(a.a); | |
test(a); | |
System.out.println(a.a); | |
} | |
public static void test(A a) { | |
a.a = 3 ; |
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
#!/bin/bash | |
# | |
# /etc/init.d/subversion | |
# | |
# Starts the Subversion Daemon | |
# | |
# chkconfig: 2345 90 10 | |
# description: Subversion Daemon | |
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
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
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
#!/bin/bash | |
# | |
# Startup script for the Apache Web Server | |
# | |
# chkconfig: - 85 15 | |
# description: Apache is a World Wide Web server. It is used to serve \ | |
# HTML files and CGI. | |
# processname: httpd | |
# pidfile: /usr/local/apache2/logs/httpd.pid | |
# config: /usr/local/apache2/conf/httpd.conf |
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
# vim: ts=2 | |
# | |
require 'fluent/parser' | |
module Fluent | |
class TextParser | |
class PhpErrorParser < Parser | |
Plugin.register_parser('phperror', self) | |
config_param :xdebug, :bool, :default => false |
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 "stdafx.h" | |
#include <stdlib.h> | |
class MyClass { | |
private: | |
int val = 0; | |
public: | |
MyClass(int i) { | |
val = 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
typedef int(__thiscall *gameui_runcmd)(void* _this, char *cmd); | |
void runSettings() { | |
HMODULE gameui = GetModuleHandle("GameUI.dll"); | |
gameui_runcmd runcmd_func = (gameui_runcmd) ((uintptr_t) gameui + 0x2D1E0); | |
void *gameui_instance = (void*) ((uintptr_t)gameui + 0xC5184); | |
// | |
runcmd_func(gameui_instance, "OpenOptionsDialog"); | |
} |
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
#pragma once | |
#include <system_error> | |
#include <Windows.h> | |
namespace GameUI { | |
typedef int(__thiscall *noarg_meth_t)(void*); | |
typedef int(__thiscall *onearg_meth_t)(void*, void*); | |
class TaskBar |
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
// struct for pin | |
typedef struct { | |
uint8 pin; | |
uint8 state; | |
long lastUpdated; | |
long interval; | |
} pin_info_t; | |
// initialize pin info | |
pin_info_t pin9 = {9, LOW, 0, 1000}; |
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
// Remove the weak linkage | |
PyObject* /*__attribute__((weak))*/ vm_get_mem(JitCpu *self, PyObject* args) |
OlderNewer