Forked from Captain Anonymous's Pen bdOazJ.
A Pen by risingsunomi on CodePen.
| const std = @import("std"); | |
| const root = @import("root.zig"); | |
| fn check_inarray(val: ?*root.TreeNode, arr: *std.ArrayListAligned(?*root.TreeNode, null)) bool { | |
| for (arr.items) |tnode| { | |
| if (tnode.?.val == val.?.val) { | |
| return true; | |
| } | |
| } |
| import requests | |
| import os | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.chrome.options import Options | |
| from fake_useragent import UserAgent as faUserAgent | |
| import logging |
| #!/usr/bin/env python3 | |
| import re | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import uuid | |
| from PIL import Image | |
| from io import BytesIO | |
| site = 'https://www.fbi.gov/feeds/wanted-collection' |
| """ | |
| Above-Average Subarrays | |
| You are given an array A containing N integers. Your task is to find all subarrays whose average sum is greater | |
| than the average sum of the remaining array elements. You must return the start and end index of each subarray in sorted order. | |
| A subarray that starts at position L1 and ends at position R1 comes before a subarray that starts at L2 and ends at | |
| R2 if L1 < L2, or if L1 = L2 and R1 ≤ R2. Note that we'll define the average sum of an empty array to be 0, and | |
| we'll define the indicies of the array (for the purpose of output) to be 1 through N. A subarray that contains a | |
| single element will have L1 = R1. | |
| Signature |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.ServiceProcess; | |
| using System.Text; | |
| using System.Reflection; | |
| using System.Threading; | |
| namespace SomeService | |
| { |
Forked from Captain Anonymous's Pen bdOazJ.
A Pen by risingsunomi on CodePen.
| $.fn.outerHTML = function(s) { | |
| return s | |
| ? this.before(s).remove() | |
| : jQuery("<p>").append(this.eq(0).clone()).html(); | |
| }; | |
| $(function(){ | |
| $(".owl-carousel").owlCarousel({ | |
| mouseDrag: false, | |
| touchDrag: false, |
Forked from Captain Anonymous's Pen myrjqv.
A Pen by risingsunomi on CodePen.
| <div class="container owlnav-container"> | |
| <div class="row"> | |
| <div class="controls-container col-md-8"> | |
| <div class="dropdown"> | |
| <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true"> | |
| <i class="fa fa-cog"></i> | |
| <span class="caret"></span> | |
| </button> | |
| <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> | |
| <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Edit</a></li> |