Skip to content

Instantly share code, notes, and snippets.

nums = range(5) # range is a built-in function that creates a list of integers
print nums # Prints "[0, 1, 2, 3, 4]"
print nums[2:4] # Get a slice from index 2 to 4 (exclusive); prints "[2, 3]"
print nums[2:] # Get a slice from index 2 to the end; prints "[2, 3, 4]"
print nums[:2] # Get a slice from the start to index 2 (exclusive); prints "[0, 1]"
print nums[:] # Get a slice of the whole list; prints ["0, 1, 2, 3, 4]"
print nums[:-1] # Slice indices can be negative; prints ["0, 1, 2, 3]"
nums[2:4] = [8, 9] # Assign a new sublist to a slice
print nums # Prints "[0, 1, 8, 9, 4]"
nums = range(5) # range is a built-in function that creates a list of integers
print nums # Prints "[0, 1, 2, 3, 4]"
print nums[2:4] # Get a slice from index 2 to 4 (exclusive); prints "[2, 3]"
print nums[2:] # Get a slice from index 2 to the end; prints "[2, 3, 4]"
print nums[:2] # Get a slice from the start to index 2 (exclusive); prints "[0, 1]"
print nums[:] # Get a slice of the whole list; prints ["0, 1, 2, 3, 4]"
print nums[:-1] # Slice indices can be negative; prints ["0, 1, 2, 3]"
nums[2:4] = [8, 9] # Assign a new sublist to a slice
print nums # Prints "[0, 1, 8, 9, 4]"
adding occurance for: Battle of Ohio #CLEvsCIN #LetsRoar https://t.co/KrM27W9GvP
get categories with id: 72
finished with: Battle of Ohio #CLEvsCIN #LetsRoar https://t.co/KrM27W9GvP
adding occurance for: Where is the love? https://t.co/yBhokMa4jI
get categories with id: 11
finished with: Where is the love? https://t.co/yBhokMa4jI
Timeout, server ec2-52-24-138-64.us-west-2.compute.amazonaws.com not responding.
for VIN: 2GNALCEKXG1118862 we received the following options: {
"dealer_installed_options" = (
{
amount = 200;
name = "Air Freshener";
}
);
incentives = (
{
"can_affect_price" = 1;
{
offers = (
);
"selected_dealer_installed_options" = (
{
name = "Air Freshener";
price = 200;
}
);
"selected_dealer_installed_options_price" = 200;
offers = (
{
"assigned_dealer_email" = "[email protected]";
"assigned_dealer_full_name" = "Shawn Ryan";
"assigned_dealer_id" = 395445;
"assigned_dealer_phone" = "(410) 939-2255";
"auth_code" = MEGG3UZM73QB6;
"base_invoice_amount" = "25127.5";
"base_msrp_amount" = 26450;
"base_price" = 24728;
following options: {
"dealer_installed_options" = (
{
amount = 200;
name = "Air Freshener";
}
);
incentives = (
{
"can_affect_price" = 1;
2499-2530/com.avtar.truckkeeper D/BeaconService﹕ beacon detected multiple times in scan cycle : id1: 2f234454-cf6d-4a0f-adf2-f4911ba9ffa6 id2: 1 id3: 1
07-01 21:46:29.702 2499-2530/com.avtar.truckkeeper D/BeaconService﹕ beacon detected : id1: 2f234454-cf6d-4a0f-adf2-f4911ba9ffa6 id2: 1 id3: 1
07-01 21:46:29.702 2499-2530/com.avtar.truckkeeper D/Callback﹕ attempting callback via intent: ComponentInfo{com.avtar.truckkeeper/org.altbeacon.beacon.BeaconIntentProcessor}
07-01 21:46:29.705 2499-2499/com.avtar.truckkeeper D/ActivityThread﹕ SVC-Creating service: CreateServiceData{token=android.os.BinderProxy@42053eb0 className=org.altbeacon.beacon.BeaconIntentProcessor packageName=com.avtar.truckkeeper intent=null}
07-01 21:46:29.705 2499-2530/com.avtar.truckkeeper D/BeaconService﹕ looking for ranging region matches for this beacon
07-01 21:46:29.705 2499-2499/com.avtar.truckkeeper D/dalvikvm﹕ create interp thread : stack size=128KB
07-01 21:46:29.705 2499-2499/com.avtar.truckkeeper D/dalvikvm﹕ crea
07-01 16:02:39.136 20913-21418/org.altbeacon.beaconreference D/ReferenceApplication﹕ did enter region.
07-01 16:02:39.150 20913-20928/org.altbeacon.beaconreference D/BluetoothAdapter﹕ onScanResult() - Device=24:4B:03:2E:00:D9 RSSI=-91
07-01 16:02:39.150 20913-20928/org.altbeacon.beaconreference D/CycledLeScannerForJellyBeanMr2﹕ got record
07-01 16:02:39.151 20913-20928/org.altbeacon.beaconreference D/BluetoothDevice﹕ mAddress: 24:4B:03:2E:00:D9
07-01 16:02:39.195 20913-20913/org.altbeacon.beaconreference D/ActivityThread﹕ SVC-Destroying service: org.altbeacon.beacon.BeaconIntentProcessor@41e0cfd0
07-01 16:02:39.196 20913-20913/org.altbeacon.beaconreference D/ActivityThread﹕ SVC-STOP_SERVICE handled : 0 / android.os.BinderProxy@41e0c870
07-01 16:02:39.197 20913-21418/org.altbeacon.beaconreference D/dalvikvm﹕ threadid=15: exiting
07-01 16:02:39.198 20913-21418/org.altbeacon.beaconreference D/dalvikvm﹕ threadid=15: bye!
07-01 16:02:39.209 20913-20952/org.altbeacon.beaconreference D/BeaconParser﹕ Process
C++ Motor: microstepper_y Steps: 2.315920
C++ Motor: microstepper_e0 Steps: 0.071519
C++: PrinterMovement_TimedMovement::total_time_seconds: 0.001315
C++: timed_move_t::requested_total_time: 1314
C++ Motor: microstepper_x Steps: 2.242524
C++ Motor: microstepper_y Steps: 2.240259
C++ Motor: microstepper_e0 Steps: 0.069183
C++: PrinterMovement_TimedMovement::total_time_seconds: 0.001316
C++: timed_move_t::requested_total_time: 1315
C++ Motor: microstepper_x Steps: 2.166787