sauna.reload: so that you can finish your Plone development today and relax in sauna after calling it a day
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.io.IOException; | |
import java.util.Arrays; | |
public class MaximumTrader { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
String[] pricesStr = br.readLine().split(" "); |
Table of Contents
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_trunc_ambiguous_and_invalid_times (db_functions.datetime.test_extract_trunc.DateFunctionWithTimeZoneTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/usr/lib64/python3.7/unittest/case.py", line 59, in testPartExecutor | |
yield | |
File "/usr/lib64/python3.7/unittest/case.py", line 615, in run | |
testMethod() | |
File "/home/sage/gsoc/django/django/tests/db_functions/datetime/test_extract_trunc.py", line 1055, in test_trunc_ambiguous_and_invalid_times | |
model = DTModel.objects.annotate(truncated_start=TruncDay('start_datetime')).get() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Steam Link Filter Disabler | |
// @namespace https://steamcommunity.com | |
// @version 0.1 | |
// @description Disable the link filter on steamcommunity links. | |
// @author laymonage | |
// @match https://steamcommunity.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function writeTable(items) { | |
/** | |
* Write items to table. | |
*/ | |
var tbody = $('tbody'); | |
tbody.empty(); | |
$(function() { | |
$.each(items, function(i, item) { | |
var author = item.volumeInfo.authors ? item.volumeInfo.authors[0] : '-'; | |
var thumbnail = item.volumeInfo.imageLinks ? item.volumeInfo.imageLinks.smallThumbnail : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- test | |
- deploy | |
UnitTest: | |
image: python:3.6 | |
stage: test | |
before_script: | |
- apt-get update -qq && apt-get install -y -qq chromedriver | |
- pip install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
from bs4 import BeautifulSoup | |
def scrape(link): | |
''' | |
Fungsi rekursif untuk scraping blog punkindonesiamp3. | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
document.documentElement.innerHTML = '<iframe width="1280" height="720" src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1"></iframe>'; | |
})(); |
NewerOlder