Skip to content

Instantly share code, notes, and snippets.

View davilima6's full-sized avatar

Davi Medeiros davilima6

View GitHub Profile
@davilima6
davilima6 / haystack.py
Last active April 30, 2019 08:43
Haystack Exercise
haystack = "javascript"
needle1 = "jvs"
needle2 = "jts"
needle3 = "jvt"
def func(word, partial):
isFound = True
for char in haystack:
if not partial:
@davilima6
davilima6 / intersection.py
Created April 30, 2019 08:41
Intersection Exercise
# PROBLEM
arr1 = [1, 2, 3]
arr2 = [1, 3, 4]
output = [1, 3]
# SOLUTION
def func(arr1, arr2):
@davilima6
davilima6 / 0_reuse_code.js
Created June 30, 2016 11:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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.