What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-22 00:29:06
Algorithm for Roots of the quadratic equation ax2 + bx + c = 0
Step 1: Start Step 2: Declare variables a, b, c, D, x1, x2, rp and ip; Step 3: Calculate discriminant D ← b2-4ac Step 4: If D ≥ 0 r1 ← (-b+√D)/2a r2 ← (-b-√D)/2a Display r1 ... Add solution -
TypeScript 2021-10-06 18:03:02
amcharts angular universal
declare var require: any; @Component({...}) export class MapComponent implements OnInit, OnDestroy { private chart; isBrowser: boolean constructor( @Inject(PLATFORM_ID) private platformId: Object ) { this.isBrowser = isPlatformBrowser(... Add solution -
VBA 2021-09-26 21:39:02
Create checkboxes in vba quick
Sub CreateCheckBoxes() 'Declare variables Dim c As Range Dim chkBox As CheckBox Dim ansBoxDefault as Long Dim chkBoxRange As Range Dim chkBoxDefault As Boolean 'Ingore errors if user clicks Cancel or X On Error Resume Next 'Use Input Box to select cell... Add solution -
Python 2021-09-20 16:03:05
python unbound variable
>>> foo = None >>> def bar(): ... global foo ... if False: ... foo = 'spam' ... print foo ... >>> bar() None # Python needs to know in the beginning of the function if you plan on using the local or the # g... Add solution -