NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
var myList = Args.post_id_array_str; | |
// List should end with separator, for exampe "," | |
// car myList = 111,222,333,444, | |
var listSeparator = ","; | |
var listItemsType = "integer"; | |
var result = []; | |
var charsLength = myList.length; | |
var currentPosition = 0; | |
var previousSeparatorPosition = -1; |
#!usr/bin/python3 | |
# -*- coding: UTF-8 -*- | |
"""This module is a sample of the OAuth2 authentication by Python3""" | |
__version__ = "0.1.0" | |
__author__ = "shin (shin.hateblo.jp)" | |
__copyright__ = "(C) 2012 shin" | |
__email__ = "[email protected]" | |
__license__ = "Apache License 2.0" |