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
def calculate_tax (name_salary): | |
name_tax = {} | |
for key, value in name_salary.items(): | |
name_tax[key] = 0 | |
if value > 1000 : | |
if value > 10000 : | |
name_tax[key] = 900; | |
if value > 20200 : | |
name_tax[key] = 2430 | |
if value > 30750 : |
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
using System; | |
using System.IO; | |
using System.SQLite; | |
package Gist | |
{ | |
public class SeedData | |
{ | |
string readonly dbPath = "database.db"; | |
string readonly dbConnectionString = "Data Source=" + dbPath; |
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
using System; | |
using System.Linq; | |
public class Calc | |
{ | |
/// <summary> | |
/// Takes a mathematical expression and tries to evaluate it | |
/// </summary> | |
/// <param name="expression">The mathematical expression</param> | |
/// <returns>The result of evaluating the string</returns> |
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
language: csharp | |
dist: xenial | |
sudo: required | |
mono: none | |
script: | |
- chmod +x ./build.sh | |
- ./build.sh --quiet verify |
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"?> | |
<package > | |
<metadata> | |
<id>vCardLib.dll</id> | |
<title>vCardLib</title> | |
<version>2.2.2</version> | |
<summary>A library to read and write vcf files</summary> | |
<authors>Bolorunduro Winner-Timothy Bamidele</authors> | |
<owners>bolorundurowb</owners> | |
<licenseUrl>https://github.com/bolorundurowb/vCardLib/blob/master/LICENSE</licenseUrl> |
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
private static List<string> GetList() | |
{ | |
List<string> colors = new List<string> | |
{ | |
"ab", | |
"abaci", | |
"aback", | |
"abacus", | |
"abacuses", | |
"abaft", |
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
# | |
# Build configuration for Circle CI | |
# | |
dependencies: | |
override: | |
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
- echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list | |
- sudo apt-get update | |
- sudo apt-get install mono-complete |
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
[ | |
{ | |
"name": "Abia State", | |
"localGovernmentAreas": [ | |
{ | |
"name": "Aba North" | |
}, | |
{ | |
"name": "Aba South" | |
}, |
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
class MainClass | |
{ | |
public static void Main(string[] args) | |
{ | |
var daySlots = new List<Availability> |
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
public class Program | |
{ | |
public static void Main() | |
{ | |
var sentence = AnsiConsole.Prompt(new TextPrompt<string>("What's your [green]sentence[/]?") | |
.Validate(input => | |
string.IsNullOrWhiteSpace(input) | |
? ValidationResult.Error("An input is required!") | |
: ValidationResult.Success())); |
OlderNewer