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> | |
| size_t count_one_bit(uint64_t num) | |
| { | |
| size_t count = 0x0; | |
| while (num > 0x0) | |
| { | |
| if ((num & 0x01) != 0) |
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 <cstdint> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <iomanip> | |
| #include <string> | |
| using namespace std; |
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
| /*window icon*/ | |
| QLabel#label_logo{ | |
| image: url(:/skin/image/logo.png); | |
| } | |
| /*大标题*/ | |
| QLabel#label_title{ | |
| font-size:15px; | |
| font-weight:bold; |
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
| server { | |
| listen 80; | |
| server_name EXTERNAL_THINGSBOARD_DOMAIN.com; | |
| if ($scheme != "https") { | |
| return 301 https://$host$request_uri; | |
| } # managed by Certbot | |
| } | |
| server { |
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 <PubSubClient.h> | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "................."; | |
| const char* password = "................"; | |
| char* topic = "esp8266_arduino_out"; | |
| char* server = "iot.eclipse.org"; | |
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 <setjmp.h> | |
| #include <assert.h> | |
| static void test(void); | |
| static void test2(void); | |
| jmp_buf exception_handled; |
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> | |
| using namespace std; | |
| class Base { | |
| // int a; | |
| public: | |
| int a; | |
| Base() { a = 0; } | |
| Base(int x) { a = x; } |
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> | |
| int is_little_endian(void) | |
| { | |
| union w | |
| { | |
| int a; | |
| char b; | |
| } 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
| using System; | |
| using System.Threading; | |
| using System.Windows.Forms; | |
| namespace ET_WinForm | |
| { | |
| public partial class ExceptionTestForm : Form | |
| { | |
| Thread worker = new Thread(Go); | |
| Thread worker2 = new Thread(Back); |
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
| /* This is the original elf.h file from the GNU C Library; I only removed | |
| the inclusion of feature.h, which is not needed. | |
| On OSX, simply copy the file to /usr/local/include/. | |
| Mathias Lafeldt <mathias.lafeldt@gmail.com> */ | |
| /* This file defines standard ELF types, structures, and macros. | |
| Copyright (C) 1995-2003,2004,2005,2006,2007,2008,2009,2010,2011 | |
| Free Software Foundation, Inc. |