- References
- Dependency
unittest2
unittest2
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Example of thread pool | |
https://docs.python.org/3/library/concurrent.futures.html | |
https://docs.python.org/3/library/multiprocessing.html | |
""" | |
import concurrent.futures as confu | |
import multiprocessing.pool as mpp | |
import time |
/// <reference path="Emp.js" /> | |
var App = angular.module('MyApp', ['ngRoute']);//already disscused about ngRoute and angular.module | |
App.controller('EmpController', function ($scope, EmployeeService) {// controller with two parameters $scope and serive Which i have little bit discused about it in ever first angualrjs tutorial | |
$scope.isFormValid = false; | |
$scope.message = null; | |
$scope.employee = null; | |
EmployeeService.GetEmployeeList().then(function (d) { //Call the GetEmployeeList() function in service for getting all Employee Record | |
$scope.employee = d.data; | |
}, | |
function () { |
# Baseball Game | |
# By: Sergio Camalich | |
# Website: www.camali.ch | |
# Import modules | |
import sys | |
import random | |
import time | |
# Playing? |
See all available environment variables: https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
export AWS_DEFAULT_REGION=us-west-2
import unittest | |
'''Write a function: | |
def solution(A) | |
that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. | |
For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. | |
Given A = [1, 2, 3], the function should return 4. | |
Given A = [−1, −3], the function should return 1. |
const debug = require('debug')('steve'); | |
debug('variable value... through debug'); | |
//console.log('variable value... through console.'); | |
let arr = [].fill(123, 0, 10000); | |
let arr2 = new arr.map(item => item * 10); // needed `new` in front of Array | |
debug('after the loop'); |