-
Github Actions cho phép chúng ta tạo workflows vòng đời phát triển phần mềm cho dự án trực tiếp trên Github repository của chúng ta
-
Github Actions giúp chúng ta tự động hóa quy trình phát triển phần mềm tại nơi chúng ta lưu trữ code và kết hợp với pull request và issues. Chúng ta có thể viết các tác vụ riêng lẻ, được gọi là các actions và kết hợp các actions đó lại với nhau để tạo ra một workflow theo ý của chúng ta. Workflow là các tiến trình tự động mà bạn có thể thiết lập trong repository của mình để build, test, publish package, release, hoặc deploy dự nào trên Github
-
Với Github Actions chúng ta có thể tích hợp continuous integration (CI) và continuous deployment (CD) trực tiếp trên repository của mình
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
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.4.22 <0.8.0; | |
pragma experimental ABIEncoderV2; | |
contract Wallet { | |
address[] public approvers; | |
uint8 public quorum; | |
struct Transfer { |
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
import TronWeb from 'tronweb' | |
interface JustSwap { | |
tokenToTrxSwapInput(tokens_sold: number, min_trx: number, deadline: number): { send(any) } | |
getTokenToTrxInputPrice(tokens_sold: number): {call()} | |
tokenToTrxTransferInput(min_liquidity: number, max_tokens: number, deadline: number, recipient: string): { send(any) } | |
tokenToTokenSwapInput(tokens_sold: number, min_tokens_bought: number, min_trx_bought: number, deadline: number, token_addr: string): { send(any) } | |
}; |
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
stages: | |
- deploy development | |
- deploy production | |
deploy_dev_stage: | |
stage: deploy development | |
environment: | |
name: deploying | |
only: | |
- develop |
Step 1: Install XCode Install XCode from App Store.
If XCode available on App Store is not compatible with your OS:
Find XCode version compatible to your OS from this table https://en.wikipedia.org/w/index.php?title=Xcode#Version_comparison_table Go to this webpage https://developer.apple.com/download/more/ Login if you have apple developer account else create your account and login. Search for xcode and download the version compatible to your OS. Install XCode.
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
function initialize() { | |
var myMapOptions = { | |
zoom: 8, | |
center: new google.maps.LatLng(-34.397, 150.644), | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
var map = new google.maps.Map(document.getElementById('map_canvas'), myMapOptions); | |
// Create a div to hold everything else | |
var controlDiv = document.createElement('DIV'); |
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
Action is a delegate (pointer) to a method, that takes zero, one or more input parameters, but does not return anything. | |
Func is a delegate (pointer) to a method, that takes zero, one or more input parameters, and returns a value (or reference). | |
Predicate is a special kind of Func often used for comparisons. | |
Though widely used with Linq, Action and Func are concepts logically independent of Linq. C++ already contained the basic concept in form of typed function pointers. | |
Here is a small example for Action and Func without using Linq: |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="DemoPhoneBook.demo._default" %> | |
<style> | |
table, th, td { | |
border: 1px solid black; | |
} | |
</style> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> |
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
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
`phonecode` int(5) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |