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
| THE ISA AND PC/104 BUS | |
| IBM, IBM/XT, IBM PC, and IBM PC AT are registered trademarks of | |
| International Business Machines Corporation. | |
| This file is designed to give a basic overview of the bus found in | |
| most IBM clone computers, often referred to as the XT or AT bus. The | |
| AT version of the bus is upwardly compatible, which means that cards |
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> | |
| static int SEED = 0; | |
| static int hash[] = {208,34,231,213,32,248,233,56,161,78,24,140,71,48,140,254,245,255,247,247,40, | |
| 185,248,251,245,28,124,204,204,76,36,1,107,28,234,163,202,224,245,128,167,204, | |
| 9,92,217,54,239,174,173,102,193,189,190,121,100,108,167,44,43,77,180,204,8,81, | |
| 70,223,11,38,24,254,210,210,177,32,81,195,243,125,8,169,112,32,97,53,195,13, | |
| 203,9,47,104,125,117,114,124,165,203,181,235,193,206,70,180,174,0,167,181,41, | |
| 164,30,116,127,198,245,146,87,224,149,206,57,4,192,210,65,210,129,240,178,105, |
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
| # Directories | |
| S_DIR=source | |
| B_DIR=build | |
| # Files | |
| S_FILES=$(S_DIR)/sdl_test.cpp | |
| # Output | |
| EXEC=$(B_DIR)/sdl_app |
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 function for toggling windowed mode in a C++ SDL app. Fullscreen windows will appear on whichever screen the window was on. | |
| * | |
| * Could be used in conjunction with SDL_GetDisplayName(int displayIndex) | |
| * and SDL_GetNumVideoDisplays(void) to programmatically force fullscreen onto a particular display | |
| */ | |
| void toggleWindowed() | |
| { | |
| //Grab the mouse so that we don't end up with unexpected movement when the dimensions/position of the window changes. |
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
| #================================================ | |
| # CMAKE BUILD | |
| # WINDOW BUILD CURRENTLY | |
| #================================================ | |
| cmake_minimum_required(VERSION 3.20) # FetchContent is available in 3.11+ | |
| message("CMAKE_BUILD_TYPE >>> " ${CMAKE_BUILD_TYPE}) | |
| #convert checks for deubug / release | |
| string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) | |
| if(CMAKE_BUILD_TYPE STREQUAL "debug") |
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
| # https://docs.gitlab.com/ee/api/projects.html | |
| # https://docs.gitlab.com/ee/api/issues.html | |
| # https://docs.gitlab.com/ee/api/notes.html | |
| # Project List | |
| $r = Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN'='xxxxx' } -Uri http://xxxxx/api/v4/projects/ | |
| $r | Sort-Object -Property id | Format-Table -Property id, name | |
| # Issues List | |
| $r = Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN'='xxxxx' } -Uri http://xxxxx/api/v4/projects/<xx>/issues |
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
| #!/usr/bin/perl | |
| use strict; | |
| use IO::Socket; | |
| ################################################################ | |
| # Prueba perl de botIRC # | |
| # Objetivo del proyecto aprender manejo de perl con algunas # | |
| # de sus funciones y sobre todo sockets xD... # | |
| # # |
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
| # -*- coding: utf-8 -*- | |
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| HOST = '' #irc server | |
| PORT = 6665 #port | |
| NICK = 'pony_bot' | |
| USERNAME = 'megadeath' | |
| REALNAME = 'little pony' |
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
| /* | |
| Exemplo de servidor de eco asíncrono | |
| */ | |
| use tokio::io::{AsyncReadExt, AsyncWriteExt}; | |
| use tokio::net::{TcpListener, TcpStream}; | |
| use std::{env, io}; | |
| #[tokio::main] | |
| async fn main() -> io::Result<()> { |
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
| <?php | |
| $end_point = 'https://accounts.google.com/o/oauth2/v2/auth'; | |
| $client_id = 'YOUR_ID'; | |
| $client_secret = 'YOUR_SECRET'; | |
| $redirect_uri = 'http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]'; // http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"] or urn:ietf:wg:oauth:2.0:oob | |
| $scope = 'https://www.googleapis.com/auth/drive.metadata.readonly'; | |
| $authUrl = $end_point.'?'.http_build_query([ |