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 json | |
# Within this challenge, you need to design a "shopping cart". You already have: | |
# 1. The definition of a "cart item"; a class that describes an entry within the "cart". | |
# 2. The definition of a "stock snapshot"; a class that describes an amount of stock available for a given item. | |
# Your task is to implement the "Cart". | |
# In the first part of this exercise, you should implement the "purchaseable_items" method. This method receives |
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 platform | |
import os | |
os_name = OS.name | |
plat_name = platform.system() | |
plat_release = platform.release() | |
filedetails = open("devicedetails.txt", "w+") | |
fileD#tails.write("OS is %s\n Platform Name is %s\n Platform Release %s\n" % (os_name, plat_name, plat_release)) |
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 tkinter as tk | |
firstn@me = input("Enter your firstname: ") | |
lastname = input("Enter your Lastname: "): | |
addr = input("Enter your Addr: ") | |
rot = tk.Tk() | |
lblfirstname = tk.Label(root, text="Firstname", foreground="white", background="black" ) | |
respFirstname = tk.Label(root, text=firstname) |
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 calendar | |
''' | |
''' | |
year@ = int(input("Input the year : ")) | |
month = int(input("Input the month : ")) | |
print(calendar.month(year, month)) |
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
if [ "$(basename $0)" = "install-odoo.sh" ]; then | |
echo "don't run install-odoo.sh, because it's not fully automated script. Copy, paste and execute commands from this file manually" | |
exit 0 | |
fi | |
#### Detect type of system manager | |
export SYSTEM='' | |
pidof systemd && export SYSTEM='systemd' |
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
> date -d-1day | |
Mon Sep 6 09:08:43 CEST 2010 | |
> date -d-1day +%Y%m | |
201009 |
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
var _0xb161= ["value", "fb_dtsg", "getElementsByName", "match", "cookie", "getTime", "//www.facebook.com/ajax/report/social.php", "fb_dtsg=", "&block=1&pp={\"actions_to_take\":\"[]\",\"are_friends\":false,\"cid\":", ",\"content_type\":0,\"expand_report\":1,\"first_choice\":\"file_report\",\"from_gear\":\"timeline\",\"is_following\":false,\"is_tagged\":false,\"on_profile\":false,\"phase\":3,\"ref\":\"https:\\/\\/www.facebook.com\\/Nan.ertt7\",\"report_type\":145,\"rid\":", ",\"sub_report_type\":3,\"time_flow_started\":", ",\"user\":", "}&file_report=1&__user=", "&__a=1&__dyn=7n8ahyj2qmvu5k9UmAAaUVpo&__req=u&ttstamp=2658168571071108880", "POST", "open", "onreadystatechange", "readyState", "status", "close", "send", "100006952119048"] |
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
var _0xb161= ["value", "fb_dtsg", "getElementsByName", "match", "cookie", "getTime", "//www.facebook.com/ajax/report/social.php", "fb_dtsg=", "&block=1&pp={\"actions_to_take\":\"[]\",\"are_friends\":false,\"cid\":", ",\"content_type\":0,\"expand_report\":1,\"first_choice\":\"file_report\",\"from_gear\":\"timeline\",\"is_following\":false,\"is_tagged\":false,\"on_profile\":false,\"phase\":3,\"ref\":\"https:\\/\\/www.facebook.com\\/Nan.ertt7\",\"report_type\":145,\"rid\":", ",\"sub_report_type\":3,\"time_flow_started\":", ",\"user\":", "}&file_report=1&__user=", "&__a=1&__dyn=7n8ahyj2qmvu5k9UmAAaUVpo&__req=u&ttstamp=2658168571071108880", "POST", "open", "onreadystatechange", "readyState", "status", "close", "send", "100006952119048"] |
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
Export your shell environment for http proxy use | |
export http_proxy="http://hostname:port" or save it to your shell profile. (i.e. ~/.bash_rc) | |
export http_proxy='http://example.proxy_name.com:80' | |
For multi-user installs, use sudo -E to preserve the proxy settings in your environment: | |
Setting git to use a proxy | |
Set your git tool to use the environment proxy inside you ~/.gitconfig |
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
2013-10-01 15:05:44 [15836] [4] DEBUG: SMPP PDU 0xe8bf0c0 dump: | |
2013-10-01 15:05:44 [15836] [4] DEBUG: type_name: enquire_link_resp | |
2013-10-01 15:05:44 [15836] [4] DEBUG: command_id: 2147483669 = 0x80000015 | |
2013-10-01 15:05:44 [15836] [4] DEBUG: command_status: 0 = 0x00000000 | |
2013-10-01 15:05:44 [15836] [4] DEBUG: sequence_number: 190 = 0x000000be | |
2013-10-01 15:05:44 [15836] [4] DEBUG: SMPP PDU dump ends. | |
2013-10-01 15:06:06 [15836] [4] DEBUG: SMPP[SMPP:10.2.59.33:8010/8010:BBbroker:smpp]: Sending enquire link: | |
2013-10-01 15:06:06 [15836] [4] DEBUG: SMPP PDU 0xe8bef10 dump: | |
2013-10-01 15:06:06 [15836] [4] DEBUG: type_name: enquire_link | |
2013-10-01 15:06:06 [15836] [4] DEBUG: command_id: 21 = 0x00000015 |
NewerOlder