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
| 289 88 ab Abkhazia 7 A-Mobile | |
| 289 68 ab Abkhazia 7 A-Mobile | |
| 289 67 ab Abkhazia 7 Aquafon | |
| 412 88 af Afghanistan 93 Afghan Telecom Corp. (AT) | |
| 412 80 af Afghanistan 93 Afghan Telecom Corp. (AT) | |
| 412 01 af Afghanistan 93 Afghan Wireless/AWCC | |
| 412 40 af Afghanistan 93 Areeba | |
| 412 50 af Afghanistan 93 Etisalat | |
| 412 20 af Afghanistan 93 Roshan | |
| 276 01 al Albania 355 AMC Mobil |
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
| #!/usr/bin/env python | |
| import sqlite3 | |
| class dbopen(object): | |
| """ | |
| Simple CM for sqlite3 databases. Commits everything at exit. | |
| """ | |
| def __init__(self, path): | |
| self.path = path |
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 sqlite3 | |
| import multiprocessing | |
| ''' | |
| This program starts a daemon process that listens on a queue. | |
| It then starts 10 processes that place integers in the queue. | |
| The listening daemon pulls the integers out of the queue and | |
| stores them in the database. | |
| ''' | |
| DB_FILENAME = 'db.sqlite' |
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 sqlite3 | |
| class Model: | |
| def __init__(self, db, table): | |
| self.db = db | |
| self.table = table | |
| self.connection = sqlite3.connect(db + '.db') | |
| self.connection.row_factory = sqlite3.Row | |
| def create(self, row): |
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 java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Random; | |
| public class RssFeedProvider { | |
| public static List<RssItem> parse(String rssFeed) { | |
| List<RssItem> list = new ArrayList<>(); | |
| Random r = new Random(); | |
| // random number of item but at least 5 | |
| Integer number = r.nextInt(10) + 5; |
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
| public class RssItem { | |
| private String pubDate; | |
| private String description; | |
| private String link; | |
| private String title; | |
| public RssItem() { | |
| } | |
| public RssItem(String title, String link) { |
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 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart'; | |
| class Post { | |
| final int userId; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # Install QEMU OSX port with ARM support | |
| sudo port install qemu +target_arm | |
| export QEMU=$(which qemu-system-arm) | |
| # Dowload kernel and export location | |
| curl -OL \ | |
| https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
| export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
| # Download filesystem and export location |
NewerOlder