Skip to content

Instantly share code, notes, and snippets.

<div class="container">
<h2>HS Classification Lookup</h2>
<form #form="ngForm" (ngSubmit)="onSubmit(form)">
<div class="form-group col-sm-6">
<label for="Country">Country</label>
<select class="form-control" id="country" name="Country" [(ngModel)]="searchInput.countryCode"
(ngModelChange)="onChange($event)"
required #nameField="ngModel"
[class.error-field]="form.submitted && nameField.invalid">
<option [ngValue]="country.value" *ngFor="let country of countries | async">{{country.label}}</option>
def chargingSmartPhone (initCharge, finalCharge):
# Write your code here
T = int(input())
for _ in range(T):
initCharge, finalCharge = map(int, raw_input().split())
out_ = chargingSmartPhone(initCharge, finalCharge)
print (out_)
package delegation;
interface I {
public String start_from();
// returns the string “class draw/erase function start_from (x,y)”
public String end_to();
// returns the string “class draw/erase function end_to(x,y)”
public void set_coordinates(int x, int y);
package fda;
import java.util.Arrays;
import java.util.List;
public class TwoSets {
public static void main(String args[]) {
Integer a[] = {100, 99, 98 ,97, 96, 95 ,94 ,93, 92, 91};
List<Integer> l1 = Arrays.asList(a);
//l1.add(1);
@prab2112
prab2112 / google-apps-script.md
Created July 11, 2019 11:20 — forked from labnol/google-apps-script.md
How to Learn Google Apps Script - The best resources for learning Google Apps Script, the glue that connects GSuite services including Gmail, Google Drive, Calendar, Maps, Analytics and more.

Learning Google Apps Script

The best place to learn more about Google Script is the official documentation available at developers.google.com. Here are other places that will help you get up to speed.

  1. Google Apps Scripts - Snippets by +Amit Agarwal
  2. Apps Script Starter - Create Google Apps Script projects locally inside VS Code.
  3. Digital Inspiration by +Amit Agarwal - Google Addons
  4. Awesome Google Scripts by +Amit Agarwal
  5. Build with Google Apps Script - Setup a local development environment for Apps Script
  6. Apps Script Webinars - YouTube - by +Eric Koleda
[{
"tableName": "DEPLOYINFO",
"count": 1,
"dbType": "sqlserver",
"tableDataList": [{
"date": "Jul 25, 2017",
"rowsCount": "0 ",
"size": "0 KB",
"spaceOnDisk": "0 KB",
"indexList": []
@prab2112
prab2112 / Bug.java
Last active October 11, 2016 11:45
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
@prab2112
prab2112 / sum67.py
Last active May 16, 2016 10:32
Solution for CodingBat sum67.
def sum67(nums):
s=i=0
while i < len(nums):
if nums[i]!=6:
s+=nums[i]
i+=1
else:
while(nums[i]!=7):
i+=1
i+=1