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 <iostream> | |
| #include <SDL.h> | |
| int main() | |
| { | |
| // uint32_t windowStyleSDL = SDL_WINDOW_VULKAN; | |
| SDL_SetHint("SDL_VIDEO_X11_REQUIRE_XRANDR", "1"); // workaround for misbuilt SDL libraries on X11. | |
| // SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_SHOW_CURSOR, "1"); // When relative mouse mode is acive, don't hide cursor. | |
| SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "0"); // Don't warp the cursor to the center in relative mouse mode. |
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
| # mkinitcpio preset file for the 'linux-ck' package | |
| ALL_config="/etc/mkinitcpio.conf" | |
| ALL_kver="/boot/vmlinuz-linux-ck" | |
| PRESETS=('default' 'fallback') | |
| #default_config="/etc/mkinitcpio.conf" | |
| default_image="/boot/initramfs-linux-ck.img" | |
| default_options="-S udev,block,mdadm_udev,filesystems,keyboard,fsck,consolefont" |
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
| int any_bit_eq_1(int x) | |
| { | |
| return !!(x & 0xFFFFFFFF); | |
| } | |
| int any_bit_eq_0(int x) | |
| { | |
| return !!(~x & 0xFFFFFFFF); | |
| } |
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
| " An example for a vimrc file. | |
| " | |
| " Maintainer: Bram Moolenaar <[email protected]>" Last change: 2016 Apr 05 | |
| " | |
| " To use it, copy it to | |
| " for Unix and OS/2: ~/.vimrc | |
| " for Amiga: s:.vimrc | |
| " for MS-DOS and Win32: $VIM\_vimrc | |
| " for OpenVMS: sys$login:.vimrc |
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
| td[style='backgroud: #afa; color: inherit; vertical-align: middle; text-align: center;'] { | |
| background: #006400 !important; | |
| color: red; | |
| } |
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
| [Trigger] | |
| Operation = Install | |
| Type = Package | |
| Target = * | |
| [Action] | |
| When = PostTransaction | |
| Exec = /etc/pacman.d/scripts/record-installedpkgs.sh -u | |
| NeedsTargets |
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
| const Applet = imports.ui.applet; | |
| const Lang = imports.lang; | |
| const Main = imports.ui.main; | |
| const Gtk = imports.gi.Gtk; | |
| const Settings = imports.ui.settings; | |
| const PopupMenu = imports.ui.popupMenu; | |
| const Mainloop = imports.mainloop; | |
| const Util = imports.misc.util; | |
| const St = imports.gi.St; | |
| const GLib = imports.gi.GLib; |
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
| ADD_LIBRARY(PCH STATIC stdafx.cpp stdafx.h) | |
| ADD_CUSTOM_COMMAND(TARGET PCH | |
| PRE_BUILD | |
| COMMAND ${CMAKE_CXX_COMMAND} -x c++-header ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h -o stdafx.h.pch) | |
| SET_SOURCE_FILES_PROPERTIES(stdafx.cpp | |
| PROPERTIES | |
| COMPILE_FLAGS "-include stdafx.h") | |
| //.. | |
| ADD_EXECUTABLE(ProjectFiles ${SOURCE_FILES}) |
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
| DialogueClass::DialogueClass() | |
| { | |
| var db = new SomeDb(); // The actual code would look way different, but essentially be doing this | |
| // before this get relevant table for dialogue this dialogue | |
| // and only loop through table ids referencing this dialogue | |
| for(int i = 0; i != db.TextTable.count; ++i) // iterate through rows | |
| { | |
| string nodeId = db.table[i].nodeId; | |
| string textId = db.table[i].textId; |
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 TFunction<FName(void)> Lambda; | |
| Lambda c_0 = [this](void)->FName{ return (gameTime->Hour() < 19) ? TEXT("0x01000001000000D4") : TEXT("0x01000001000000E2"); }; |
NewerOlder