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
haystack = "javascript" | |
needle1 = "jvs" | |
needle2 = "jts" | |
needle3 = "jvt" | |
def func(word, partial): | |
isFound = True | |
for char in haystack: | |
if not partial: |
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
# PROBLEM | |
arr1 = [1, 2, 3] | |
arr2 = [1, 3, 4] | |
output = [1, 3] | |
# SOLUTION | |
def func(arr1, arr2): |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
This means: | |
Create a Python package of the form plonetheme.free_theme | |
Create a Diazo theme inside of the form: plonetheme.free_theme/plonetheme/free_theme/theme/free_theme/{rules.xml,index.html,static/} | |
Create a zip file from the diazo theme: plonetheme.free_theme/free_theme.zip | |
Upload to PyPI | |
Use plonetheme.unilluminated as an example: https://github.com/aclark4life/plonetheme.unilluminated. | |
Preferably we develop themes in the Github collective: https://github.com/organizations/collective but SVN collective or elsewhere is fine too as long as they end up on PyPI/plone.org. |