This file contains hidden or 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
| <?php | |
| $array = array( | |
| "foo" => "bar", | |
| "bar" => "foo", | |
| 100 => -100, | |
| -100 => 100, | |
| ); | |
| var_dump($array); | |
| ?> |
This file contains hidden or 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 sys | |
| import os | |
| def inversions_and_sort(input_array): | |
| output = [] | |
| inversions = 0 | |
| left = [] | |
| right = [] | |
| right_inversions = [] | |
| left_inversions = [] |
This file contains hidden or 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
| namespace :db do | |
| desc "Fill database with sample data" | |
| task populate: :environment do | |
| User.create!(name: "Example User", | |
| email: "[email protected]", | |
| password: "foobar", | |
| password_confirmation: "foobar") | |
| 99.times do |n| | |
| name = Faker::Name.name | |
| email = "example-#{n+1}@railstutorial.org" |
This file contains hidden or 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
| def index | |
| @posts = Post.all | |
| respond_to do |format| | |
| format.html | |
| format.json { render json: @posts } | |
| end | |
| end |
This file contains hidden or 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
| Traceback (most recent call last): | |
| File "parser_test.py", line 68, in main | |
| plain=email['message-plain'], attachments=email['message-attachments'], debug=options.debug) | |
| File "/Users/8vius/Projects/PythonDev/OneReceipt/Parser Kit v1.4/loft.py", line 8, in parser | |
| soup = BeautifulSoup(html, convertEntities=BeautifulSoup.HTML_ENTITIES) | |
| File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1522, in __init__ | |
| BeautifulStoneSoup.__init__(self, *args, **kwargs) | |
| File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1147, in __init__ | |
| self._feed(isHTML=isHTML) | |
| File "/Library/Python/2.7/site-packages/BeautifulSoup.py", line 1171, in _feed |
This file contains hidden or 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
| Artículo 229 de la Constitución: “No podrá ser elegido Presidente o elegida Presidenta de la República quien esté en ejercicio del cargo de Vicepresidente Ejecutivo o Vicepresidenta Ejecutiva, Ministro o Ministra, Gobernador o Gobernadora, o Alcalde o Alcaldesa, en el día de su postulación o en cualquier momento entre esta fecha y la de la elección”. |
This file contains hidden or 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
| Artículo 229 de la Constitución: “No podrá ser elegido Presidente o elegida Presidenta de la República quien esté en ejercicio | |
| del cargo de Vicepresidente Ejecutivo o Vicepresidenta Ejecutiva, Ministro o Ministra, Gobernador o Gobernadora, o Alcalde o | |
| Alcaldesa, en el día de su postulación o en cualquier momento entre esta fecha y la de la elección”. |
This file contains hidden or 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
| item_pattern = r''' (?P<quantity>\d+)\sx\s \((?P<price>\$\-*[\d\.,]+)\)\s (?P<name>[\S\s]+)\$\-*[\d\.,]+ ''' |
This file contains hidden or 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
| item_pattern = r''' | |
| (?P<quantity>\d+)\sx\s | |
| \((?P<price>\$\-*[\d\.,]+)\)\s | |
| (?P<name>[\S\s]+)\$\-*[\d\.,]+ | |
| ''' |
This file contains hidden or 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
| <tbody> | |
| <!-- BEGIN: Printed Items --> | |
| <!-- BEGIN: 0 --> | |
| <tr> | |
| <td width="300"> | |
| <div class="thumbnail"> | |
| <p>Front</p> | |
| <div class="thumbnailContainer"> | |
| <img src="https://www.overnightprints.com/tmp/m_opstore29/optmp47848//fth_v2_4b5766da83c618.31094929.jpg" /> | |
| </div><!-- thumbnailContainer --> |
OlderNewer