Create and edit an HTML5 table without the use of a library. Uses HTML5's contenteditable and minimal JavaScript.
Forked from Ash Blue's Pen HTML5 Editable Table.
Using Foundation instead of bootstrap
A Pen by Mustafa Zidan on CodePen.
| func searchInsert(nums []int, target int) int { | |
| start, end := 0, len(nums) | |
| if len(nums) == 0 || target < nums[start] { | |
| return 0 | |
| } else if target > nums[end-1] { | |
| return len(nums) | |
| } | |
| return getIndex(start, end, target, nums) | |
| } |
| Verifying my Blockstack ID is secured with the address 1GpkKb47RaF5beufPCUQ52tx2gzmE4kCcu https://explorer.blockstack.org/address/1GpkKb47RaF5beufPCUQ52tx2gzmE4kCcu |
| package com.hawkai; | |
| import java.util.*; | |
| /* | |
| * Refactor following code to get clean, readable code without coding smells. | |
| * | |
| * Hints: | |
| * There is nothing wrong with this code in terms of functionality. |
| import argparse | |
| # from nltk.corpus import stopwords | |
| # stop_words = set(stopwords.words('english')) | |
| def word_frequency(file_name): | |
| frequency = {} | |
| with open(file_name, "r") as lines: | |
| for line in lines: | |
| # With each line we need to trimmed, stemmed |
| def sieve(s: Stream[Long]): Stream[Long] = s.head #:: sieve(s.tail filter (_ % s.head != 0)) | |
| def from(n: Long): Stream[Long] = n #:: from(n + 1) | |
| def primes = sieve(from(2)) | |
| def largest(x: Long, p: Stream[Long]):Long = { | |
| if (x <= p.head) x | |
| else if (x % p.head == 0) largest(x / p.head, p) | |
| else largest(x,p.tail) |
| /** | |
| Private module, a utility, required internally by 'http-auth-interceptor'. | |
| */ | |
| window.interceptors.factory("httpBuffer", [ | |
| "$injector", function($injector) { | |
| var ApiService, buffer, retryHttpRequest; | |
| retryHttpRequest = function(config, deferred) { | |
| var ApiService, errorCallback, successCallback; | |
| successCallback = function(response) { |
Create and edit an HTML5 table without the use of a library. Uses HTML5's contenteditable and minimal JavaScript.
Forked from Ash Blue's Pen HTML5 Editable Table.
Using Foundation instead of bootstrap
A Pen by Mustafa Zidan on CodePen.
I hereby claim:
To claim this, I am signing this object:
| #include "dynamicarray.h" | |
| DynamicArray::DynamicArray() { | |
| DynamicArray::DynamicArray(5); | |
| } | |
| DynamicArray::DynamicArray(int initSize){ | |
| size = initSize; | |
| int* arr = (int *) malloc(sizeof(int) * initSize); | |
| } |