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
cmake_minimum_required(VERSION 2.6) | |
project(fchat-pidgin C) | |
include(FindPkgConfig) | |
option(FCHAT_PURPLE_ONLY "Compile without pidgin-specific extensions." OFF) | |
pkg_check_modules(GLIB REQUIRED glib-2.0) | |
pkg_check_modules(JSON_GLIB REQUIRED json-glib-1.0) | |
pkg_check_modules(PIDGIN REQUIRED pidgin) |
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
diff --git a/f-list_commands.c b/f-list_commands.c | |
index 92c17b9..1f80174 100644 | |
--- a/f-list_commands.c | |
+++ b/f-list_commands.c | |
@@ -464,8 +464,6 @@ int flist_send_message(PurpleConnection *pc, const gchar *who, const gchar *mess | |
im = PURPLE_CONV_IM(purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, who, fla->pa)); | |
purple_markup_html_to_xhtml(message, NULL, &plain_message); | |
- local_message = purple_markup_escape_text(plain_message, -1); /* re-escape the html entities */ | |
- bbcode_message = flist_bbcode_to_html(fla, purple_conv_im_get_conversation(im), local_message); /* convert the bbcode to html to display locally */ |
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
/* | |
Built using the following command from libpurple directory: | |
gcc ./nss-flist-test.c -lm -lresolv `pkg-config --cflags --libs glib-2.0` \ | |
`pkg-config --cflags --libs gobject-2.0` `pkg-config --cflags --libs gmodule-2.0` \ | |
`pkg-config --cflags --libs gio-2.0` \ | |
`pkg-config --cflags --libs nspr` `pkg-config --cflags --libs nss` \ | |
`pkg-config --cflags --libs dbus-1` `pkg-config --cflags --libs dbus-glib-1` \ | |
`pkg-config --cflags --libs libxml-2.0` -o nss-flist-test -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
#include <glib.h> | |
// libpurple | |
#include "debug.h" | |
#include "plugin.h" | |
#include "sslconn.h" | |
#include "version.h" | |
// NSS |
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
// build: gcc amdgpustats.c -o amdgpustats `pkg-config --cflags --libs libdrm` | |
// Requires Linux 4.12 or later, and libdrm 2.4.77 or later | |
#include <assert.h> | |
#include <errno.h> | |
#include <limits.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
#define HWMON_BASE "/sys/class/hwmon" | |
#define GPU_HWMON "hwmon0" // amdgpu | |
#define GPU_TEMP_TEMP "temp1" // no name | |
#define GPU_FAN_PWM "pwm1" |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
static int limit_temp_mc = 65000; | |
static long long power_step_down_uw = -1000000; | |
static long long power_step_up_uw = 200000; | |
static long long power_limit_stock = 50000000; | |
static long long power_limit_min = 15000000; |
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
#ifndef CIO_CIO_HPP | |
#define CIO_CIO_HPP | |
#include <cstdio> | |
#include <functional> | |
#include <limits> | |
#include <string> | |
#include <type_traits> | |
#include <utility> |
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
#!/bin/bash | |
function usage() | |
{ | |
echo "Usage: $0 remote directory" >&2 | |
exit 1 | |
} | |
if [ $# -lt 2 ]; then | |
usage |
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
diff --git a/decode.py b/decode.py | |
index 9c427f8..cab1595 100644 | |
--- a/decode.py | |
+++ b/decode.py | |
@@ -261,7 +261,7 @@ def get_value(pp_bin_file, var_path, data_dict=None, debug=False): | |
else: | |
data = data_dict.copy() | |
for category in var_path: | |
- if category: | |
+ if category is not None: |
OlderNewer