- Check if your network adapter is recognized : lspci -vvnn | grep 14e4
- Then go read the link https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx#STA_-_Internet_access
- In case you want to use the windows driver : https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper
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
package adt.list; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertTrue; | |
import org.junit.Before; | |
import org.junit.Test; | |
/** | |
* Testing the ArrayList implementation. |
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 spock.lang.Specification | |
import spock.lang.Unroll | |
/** | |
A programmer drinks exactly goalPints of beer every evening. | |
One evening, the programmer opens his fridge and sees a number of smallBottles of beer (1 pint each) and a number of bigBottles of beer (3 pints each). | |
The programmer needs to decide whether he can pick some bottles and start drinking, or has to run to the store to buy some more bottles. | |
The programmer is "greedy" and never consumes a bottle partially. | |
Write a Java-method which returns true if it is possible to make the goal by choosing from the given (whole) bottles, or false otherwise. | |
Note that it is not necessary to "take" all bottles — some may remain unused. |
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
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
"use strict"; | |
/* | |
* thirty-two | |
* https://github.com/chrisumbel/thirty-two | |
* |
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
$ go test -bench . | |
PASS | |
Benchmark8 1000000 1093 ns/op 936.69 MB/s | |
Benchmark64 20000000 134 ns/op 7603.74 MB/s | |
ok _/private/tmp/x 3.944s |
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
trait HasId { | |
long id | |
} | |
trait HasVersion { | |
long version | |
} | |
trait Persistent { | |
boolean save() { println "saving ${this.dump()}" } | |
} | |
trait Entity implements Persistent, HasId, HasVersion { |
Concepts-Techniques-Models-Computer-Programming CMT это известная книжка CMT, за которой слава закрепилась не хуже чем у SICP
это из этой книжки классификация различных парадигм Если присмотришься, то увидишь, что Oz поддерживает большинство вариаций (с этой целью его и конструировали, чтобы можно было наглядно продемонстрировать различные подходы в одном языке)
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
- Example: https://gist.github.com/atenni/5604522/raw/
- Works even when you change the filename.
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
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 pygtk | |
pygtk.require("2.0") | |
import gobject | |
import gtk | |
from gtk import gdk | |
class EntryMultiCompletion(gtk.Entry): | |
def __init__(self): | |
gtk.Entry.__init__(self) |