Skip to content

Instantly share code, notes, and snippets.

View minhth1905's full-sized avatar
🌴
On vacation

Trần Hữu Minh minhth1905

🌴
On vacation
  • University of Engineering and Technology Vietnam National University, Hanoi
  • Hanoi, Vietnam
View GitHub Profile
@minhth1905
minhth1905 / Adoption.sol
Created October 14, 2019 10:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.17+commit.bdeb9e52.js&optimize=false&gist=
pragma solidity ^0.4.17;
contract Adoption {
address[16] public adopters;
function adopt(uint petId) public returns (uint) {
require(petId >= 0 && petId <= 15);
adopters[petId] = msg.sender;
return petId;
@minhth1905
minhth1905 / Adoption.sol
Created October 14, 2019 10:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.17+commit.bdeb9e52.js&optimize=false&gist=
pragma solidity ^0.4.17;
contract Adoption {
address[16] public adopters;
function adopt(uint petId) public returns (uint) {
require(petId >= 0 && petId <= 15);
adopters[petId] = msg.sender;
return petId;
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
contract Money {
struct People{
uint id;
string name;
uint amount;
}
mapping (uint => People) public peoples;
event votedEvent(uint indexed _candidateId);
isFlashEnabled()
{
var hasFlash = false;
try
{
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(fo) hasFlash = true;
}
catch(e)
{
@minhth1905
minhth1905 / Main.sol
Created October 7, 2019 17:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.17+commit.bdeb9e52.js&optimize=false&gist=
pragma solidity ^0.4.17;
import "./Session.sol";
contract Main {
struct Participant {
uint participantId;
string fullname;
string email;
uint deviation;
uint numberPricing;
@minhth1905
minhth1905 / Main.sol
Last active October 7, 2019 16:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.17+commit.bdeb9e52.js&optimize=false&gist=
pragma solidity ^0.4.17;
import "./Session.sol";
contract Main {
struct Participant {
uint participantId;
string fullname;
string email;
uint8 deviation;
uint8 numberPricing;
chmod a+x ./ganache-2.1.1-linux-x86_64.AppImage
./ganache-2.1.1-linux-x86_64.AppImage
create or replace PROCEDURE B6(s_id varchar)
AS
query varchar(1000):= 'SELECT GPA(takes.id, takes.semester, takes.year),CPA(takes.id, takes.semester, takes.year,
tinchitichluytheoky(takes.id, takes.semester, takes.year), takes.semester, student.name FROM takes
inner join student on takes.id = student.id
where takes.id = '''||s_id || '''
group by takes.year, takes.semester, takes.id order by takes.year ASC, takes.semester DESC';
cur sys_refcursor;
gpa number(3,2);
cpa number(3,2);
{
"onSave": true,
"javascript": {
"indent_size": 2,
"indent_char": " ",
"eol": "auto",
"preserve_newlines": true,
"break_chained_methods": false,
"max_preserve_newlines": 0,
"space_in_paren": false,
https://cli.angular.io/
https://stackoverflow.com/questions/37986800/node-sass-could-not-find-a-binding-for-your-current-environment