Languages
1,874,115 gist results
1,874,115 gist results
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 <stdio.h> /* 標準入出力 */ | |
| #include <stdlib.h> /* 標準ユーティリティ */ | |
| #include <sys/types.h> /* 派生型 */ | |
| #include <unistd.h> /* UNIX標準 */ | |
| /* main関数の定義 */ | |
| int main(void){ | |
| /* 変数の宣言 */ |
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 | |
| # 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 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
| {"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 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
| 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 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
| /** | |
| * A program to carry on conversations with a human user. | |
| * This is the initial version that: | |
| * <ul><li> | |
| * Uses indexOf to find strings | |
| * </li><li> | |
| * Handles responding to simple words and phrases | |
| * </li></ul> | |
| * This version uses a nested if to handle default responses. | |
| * @author Laurie White |
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 { createContext } from "react"; | |
| import styled, { css, DefaultTheme } from "styled-components"; | |
| export const breakpoints = { | |
| xs: "0px", | |
| sm: "600px", | |
| md: "960px", | |
| lg: "1280px", | |
| xl: "1920px" | |
| } as const; |
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
| /*配置说明: | |
| (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即可: |
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
| --- steam.sh | |
| +++ steam.sh | |
| @@ -293,7 +293,11 @@ | |
| BF=$(($(gzip --list "$2" | sed -n -e "s/.*[[:space:]]\+[0-9]\+[[:space:]]\+\([0-9]\+\)[[:space:]].*$/\1/p") / $((512 * 100)) + 1)) | |
| ;; | |
| *.xz) | |
| - BF=$(($(xz --robot --list "$2" | grep totals | awk '{print $5}') / $((512 * 100)) + 1)) | |
| + if xz -h 2>&1 | grep -q BusyBox; then | |
| + BF="" | |
| + else |
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
| Dados do computador: | |
| Fabricante: Gigabyte Technology Co., Ltd. | |
| Modelo: B450 AORUS M | |
| Tipo: Computador de mesa | |
| Sem entrada de toque | |
| Dados do processador: | |
| Fabricante da CPU: AuthenticAMD | |
| Marca da CPU: AMD Ryzen 7 3800X 8-Core Processor | |
| Família do processador: 0x17 |
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
| <?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> |