This file contains 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
package cs.service.core.utils; | |
/** | |
* Created by baonq5 on 18/10/2018 16:59 | |
*/ | |
import vn.cs123.lib.entity.Identifiable; | |
import java.beans.Introspector; | |
import java.beans.PropertyDescriptor; |
This file contains 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 tinhSoNut(int bangSo) | |
{ | |
int soNut = 0; | |
while (bangSo != 0) | |
{ | |
soNut = soNut + bangSo % 10; | |
bangSo = bangSo / 10; |
This file contains 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 main() | |
{ | |
int a = 5; | |
int* p = &a; | |
(*p)++; // Tương đương với *p = *p + 1 |
This file contains 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> | |
int main() | |
{ | |
// Macro | |
// http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros#x86andx8664 | |
#if defined(__x86_64__) || defined(_M_X64) | |
printf("May dang chay tren kien truc 64bit\n"); | |
#elif defined(__i386) || defined(_M_IX86) | |
printf("May dang chay tren kien truc 32bit\n"); |
This file contains 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> // Sử dụng các hàm printf(), scanf() | |
#include <stdlib.h> // Sử dụng malloc() | |
#include <string.h> // Sử dụng strlen(), strncpy | |
// Copy n kí tự từ s2 và chèn vào sau s1 | |
void stringCopy(char* s1, char* s2, int n) | |
{ | |
// Ngắt nếu input không hợp lệ | |
if (s1 == NULL || s2 == NULL || n == 0) | |
{ |
This file contains 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 <string.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
char inputFile[100]; | |
char output[100] = {}; |
This file contains 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" standalone="no"?> | |
<document type="freeswitch/xml"> | |
<section name="dialplan"> | |
<context name="public"> | |
<extension name="Route to extension 101 that picked up the call recently"> | |
<condition expression="^(02836221443)$" field="destination_number"> | |
<action application="set" data="call_timeout=20"/> | |
<action application="set" data="continue_on_fail=NO_ANSWER,UNALLOCATED_NUMBER,NO_ROUTE_TRANSIT_NET,CALL_REJECTED,NETWORK_OUT_OF_ORDER,DESTINATION_OUT_OF_ORDER,NORMAL_CIRCUIT_CONGESTION,NORMAL_TEMPORARY_FAILURE,SWITCH_CONGESTION,NO_USER_RESPONSE,USER_BUSY"/> | |
<action application="answer"/> | |
<action application="sleep" data="1000"/> |
This file contains 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
N30fSesvQzMEXrXOB33NbbBrRW9j83SX |
This file contains 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 "aws.h" | |
#include <switch.h> | |
#include <switch_utils.h> | |
#include <openssl/hmac.h> | |
#include <openssl/sha.h> | |
/** | |
* Create the AWS S3 signature | |
* @param signature buffer to store the signature | |
* @param signature_length length of signature buffer |
OlderNewer