Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// interface resposta padrão + retorno de dados | |
interface IDataResponseApiDto<T>{ | |
data: T | undefined; | |
} | |
class DataResponseApiDto<T> extends ResponseApiDto implements IDataResponseApiDto<T>{ | |
data: T | undefined; | |
constructor(data: T | undefined, result: boolean = true, message: String = "Executado com sucesso!"){ | |
super (result, message); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/* PAGINATION WITH SORTING AND PAGING */ | |
const page = 1; // input page, min value 1 | |
const limit = 2; // input limit min value 1 | |
/* INPUT ARRAY */ | |
const array = [ | |
{ Editable: true, Name: "Daniel Test", Site: "SE100"}, | |
{ Editable: true, Name: "Test new", Site: "SE100"}, | |
{ Editable: false, Name: "Test", Site: "SE100"}, | |
]; |
#!/bin/bash | |
# | |
# Pre-commit hooks | |
# Check branch name | |
BRANCH_NAME_LENGTH=`git rev-parse --abbrev-ref HEAD | grep -E '^t[0-9]{2,16}\_.*_[A-Za-z]{2,2}$' | wc -c` | |
if [ ${BRANCH_NAME_LENGTH} -eq 0 ] ; then | |
echo -e '\E[37;44m'"\033[1mERROR\033[0m in pre-commit hook: vim /export/web/.git/hooks/pre-commit" | |
echo "Branch name should be like t00000_blah_blah_CA - brand is two letters" |
#!/usr/bin/env bash | |
############################################################################### | |
# | |
# Automatically detects a merge on to master from a gitflow-style release | |
# branch, e.g. release-1.1.1-alpha. If the merged branch matches, the major, | |
# minor and patch versions are determined and a new release tag is created | |
# locally. If remote origin exists, this tag will automatically be pushed. | |
# | |
# In addition to creating a tag, the release branch will automatically be | |
# merged into the develop branch. If the branch has already been merged this |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace PipelineDemo | |
{ | |
// http://www.rantdriven.com/post/2009/09/16/Simple-Pipe-and-Filters-Implementation-in-C-with-Fluent-Interface-Behavior.aspx | |
public interface IFilter<TContext> | |
{ |
To remove a submodule you need to:
pragma solidity ^0.4.24; | |
// ---------------------------------------------------------------------------- | |
// Sample token contract | |
// | |
// Symbol : LCST | |
// Name : LCS Token | |
// Total supply : 100000 | |
// Decimals : 2 | |
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe |