Inspirated by Golang's const, I made this script for automation set value for constants white writing Java code.
Just:
//#constant(
int A;
int B;
@import url('https://fonts.googleapis.com/css?family=Goudy+Bookletter+1911|Inconsolata|Lora|Slabo+27px|Song+Myung|Source+Serif+Pro|Roboto Mono'); | |
* { | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: 'Source Serif Pro', Lora, 'Slabo 27px', 'Goudy Bookletter 1911', serif; | |
line-height: 1.4em; |
def solution(A, B): | |
go_up_count = 0 | |
s1 = [] | |
for i in range(0, len(A)): | |
a = A[i] | |
b = B[i] | |
if b == 0: | |
if not s1: | |
go_up_count += 1 | |
else: |
setTimeout(function() { | |
document.getElementsByClassName("sbo-toc-thumb")[0].click(); | |
setInterval(function() { | |
document.getElementsByClassName("sbo-toc-thumb")[0].click(); | |
}, 1000); | |
}, 2000); | |
Grab code then
apply from: 'lazy.gradle'
<key>Customized</key> | |
<dict> | |
<key>Duplicate Lines</key> | |
<string>selectLine:, copy:, moveToEndOfLine:, paste:, deleteBackward:</string> | |
<key>Duplicate Current Line</key> | |
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string> | |
<key>Start New Line</key> | |
<string>moveToEndOfLine:, insertNewline:</string> | |
<key>Start New Line Above</key> | |
<string>moveUp:, moveToEndOfLine:, insertNewline:</string> |
apply from: 'release.gradle' | |
android{ | |
productFlavors { | |
dev { | |
//... | |
} | |
//... | |
} |
//module gradle | |
apply from: 'versionCode.gradle' //anywhere | |
android { | |
defaultConfig { | |
versionName VERSION_NAME | |
versionCode Integer.parseInt(VERSION_CODE) | |
} | |
} |
import scrapy | |
from crawler.items import CommentItem | |
from crawler.items import PostItem | |
class TinhteSpider(scrapy.Spider): | |
name = "tinhte" | |
allowed_domains = ["tinhte.vn"] | |
start_urls = [ |