Languages
1,559,118 gist results
1,559,118 gist results
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 <sys/types.h> /* 派生型 */ | |
#include <unistd.h> /* UNIX標準 */ | |
/* main関数の定義 */ | |
int main(void){ | |
/* 変数の宣言 */ |
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 | |
# This script is written to collect system stats. | |
# Author : Mansur Ul Hasan | |
# Email : [email protected] | |
# Check RAM and SWAP Usages | |
free -m | grep -v "+\|You" > /tmp/ramcache | |
echo -e '\E[32m'"Ram Usages :" $tecreset | |
cat /tmp/ramcache | grep -v "Swap" | |
echo -e '\E[32m'"Swap Usages :" $tecreset |
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
{"id":"37653a3f-444f-4710-9f9c-4d4111929b5c","group":"","sort_index":0,"isLocal":true,"cloudID":"37653a3f-444f-4710-9f9c-4d4111929b5c","cloudOwnerID":"us-east-1:84ed0398-b0e9-4914-931c-85fdff7a7c88","gistCode":"","gistOwner":"377839bf-c134-4ab0-b713-3ee67bf26e83","lastSync":"","level":0,"callsign":"Systems","name":"Systems","player_name":"","status":"Active","dead":false,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirks":[],"current_hp":6,"reserves":[],"orgs":[],"background":"","mechSkills":[0,0,2,0],"licenses":[],"skills":[{"id":"sk_hack_or_fix","rank":1},{"id":"sk_invent_or_create","rank":1},{"id":"sk_word_on_the_street","rank":1},{"id":"sk_take_control","rank":1}],"talents":[{"id":"t_hacker","rank":1},{"id":"t_ace","rank":1},{"id":"t_centimane","rank":1}],"core_bonuses":[],"loadout":{"id":"34aedfa3-7837-42d0-ab97-2d8acb89ab5c","name":"Primary","armor":[{"id":"pg_light_hardsuit","destroyed":false,"cascading":false,"customDamageType":null}],"weapons":[{"id":"pg_light_a_c" |
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/include/system/window.h b/include/system/window.h | |
index 7c94243..df404ee 100644 | |
--- a/include/system/window.h | |
+++ b/include/system/window.h | |
@@ -253,6 +253,10 @@ enum { | |
NATIVE_WINDOW_API_DISCONNECT = 14, /* private */ | |
NATIVE_WINDOW_SET_BUFFERS_USER_DIMENSIONS = 15, /* private */ | |
NATIVE_WINDOW_SET_POST_TRANSFORM_CROP = 16, /* private */ | |
+#ifdef OMAP_COMPAT | |
+ NATIVE_WINDOW_SET_BUFFERS_LAYOUT = 254, |
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-2017 by Teradata Corporation. All rights reserved. | |
TERADATA CORPORATION CONFIDENTIAL AND TRADE SECRET | |
--> | |
<td-layout-nav logo="assets:teradata" toolbarTitle="Unity Systems Manager"> | |
<td-layout-manage-list #manageList | |
[opened]="media.registerQuery('gt-sm') | async" | |
[mode]="(media.registerQuery('gt-sm') | async) ? 'side' : 'push'" | |
[sidenavWidth]="(media.registerQuery('gt-xs') | async) ? '257px' : '100%'"> | |
<md-toolbar td-sidenav-content > |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> | |
<system> | |
<section id="geo_ip" showInDefault="1" type="text" translate="label"> | |
<label>GeoIP Redirect</label> | |
<tab>mirasvit</tab> | |
<resource>Mirasvit_GeoIp::system</resource> | |
<group id="general" showInDefault="1" showInWebsite="1" sortOrder="5"> | |
<label>General Settings</label> |
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
export ANDROID_HOME=/Users/${USER}/Library/Android/sdk | |
export ANDROID_SDK=/Users/${USER}/Library/Android/sdk | |
export ANDROID_SDK_ROOT=/Users/${USER}/Library/Android/sdk | |
export ANDROID_AVD_HOME=/Users/${USER}/.android/avdexport | |
export PATH=$PATH:/Users/${USER}/Library/Android/sdk/platform-tools/ | |
export PATH=$PATH:/opt/local/share/java/android-sdk-macosx/platform-tools | |
export PATH=$PATH:/Users/${USER}/Library/Android/sdk/tools | |
# alias avd='cd /Users/${USER}/Library/Android/sdk/tools; ./android avd' | |
# SWITCH TO JAVA VERSION 8 | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen Threadripper 1920X 12-Core Processor | |
CPU Family: 0x17 |
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 os import * | |
from kandinsky import * # Here we get the kandinsky module since this is the bootloader. | |
from time import * | |
try: | |
bcd = open("boot.ini", "r") | |
except: | |
print("The boot.ini file is missing or corrupted.") | |
print("Please make one with the config() command") |
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
/*配置说明: | |
(1)VS工程:property ->cuda c/c++ ->Device ->code generation ->sm_**需要是sm_30以上(例如将原来的sm_10改为sm_30或更高) | |
(2)VS工程:property ->linker ->input ->addition dependencies ->加入 curand.lib;cublas.lib; | |
(3) 将文件pthreadVC2.dll拷贝到.exe文件的同一目录下 | |
(4)POSIX Threads for Win32的项目,专门为win32开发了一个pthread的li下载到的exe解压之后,会得到三个目录: | |
其中,Pre-built.2中是已经编译好的lib以及dll,同时包含了一些必要的头文件。将其中的include文件夹和lib文件夹copy到VC的安装目录下 | |
例如,VC6.0的环境,默认安装,则,需要copy到:C:\Program Files\Microsoft Visual Studio\VC98 | |
接着,在编程的时候,引入pthreadVC2.lib即可: |