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 <sys/mman.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #define STORAGE_ID "/SHM_TEST" | |
| #define STORAGE_SIZE 32 | |
| int main(int argc, char *argv[]) |
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/python | |
| # -*- coding: utf-8 -*- | |
| # Reference: https://github.com/frostschutz/SourceLib/blob/master/SourceRcon.py | |
| # Converted to Python3 by Guillaume "Elektordi" Genty (Tested on 3.7) | |
| #------------------------------------------------------------------------------ | |
| # SourceRcon - Python class for executing commands on Source Dedicated Servers | |
| # Copyright (c) 2010 Andreas Klauer <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy |
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
| jQuery.ajax({ | |
| url:'https://archived.getbible.net/json', | |
| dataType: 'jsonp', | |
| data: 'p=John1&v=kjv', | |
| jsonp: 'getbible', | |
| success:function(json){ | |
| // set text direction | |
| if (json.direction == 'RTL'){ | |
| var direction = 'rtl'; | |
| } else { |