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 main(): | |
#Declare | |
price = 99 | |
quantity = float(input("How many packages have you purchased?")) | |
if quantity >= 10: | |
print ("Your discount is 20%.") |
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 com.koushikdutta.async; | |
import java.io.IOException; | |
import java.nio.channels.SelectionKey; | |
import java.nio.channels.Selector; | |
import java.util.Set; | |
import java.util.concurrent.Semaphore; | |
import java.util.concurrent.TimeUnit; | |
/** |
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
/// <summary> | |
/// This will get the text of the ITextView line as it appears in the actual user editable | |
/// document. | |
/// </summary> | |
public static bool TryGetText(ITextView textView, ITextViewLine textViewLine, out string text) | |
{ | |
var extent = textViewLine.Extent; | |
var bufferGraph = textView.BufferGraph; | |
try | |
{ |
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
/// <summary> | |
/// This will get the text of the ITextView line as it appears in the actual user editable | |
/// document. | |
/// </summary> | |
public static bool TryGetText(ITextView textView, ITextViewLine textViewLine, out string text) | |
{ | |
var extent = textViewLine.Extent; | |
var bufferGraph = textView.BufferGraph; | |
try | |
{ |