This file contains 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
#include <cmath> | |
#include "ListenElement2.h" | |
class Liste | |
{ | |
public: | |
Liste() | |
{ | |
head = NULL; | |
tail = NULL; |
This file contains 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
; | |
; Zeichnet 80 Pixel in einer gepunkteten Linie | |
; Die Linie besteht aus 10 Segmenten a 8 Pixeln. | |
; | |
#include "../ti83plus.inc" | |
.db $BB,$6D | |
.org 9D95h | |
.db t2ByteTok | |
ld a,10 ;Zähler | |
ld b,0 ;Koordinate |
This file contains 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
#include "../ti83plus.inc" | |
.db $BB,$6D | |
.org 9D95h | |
.db t2ByteTok | |
ld hl,txtHello | |
bcall(_puts) | |
ret | |
txtHello: | |
.db "Hello TI",0 | |
.end |
This file contains 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
# gem sources -u | |
ERROR: http://gems.rubyforge.org/ does not appear to be a repository | |
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) | |
bad response Found 302 (http://gems.rubyforge.org/yaml) |
This file contains 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/ruby | |
class GrussAugust | |
attr_accessor :name | |
def initialize(name = "World") | |
@name = name | |
end | |
def greet |
This file contains 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
describe "IntelligentForwardings" do | |
describe " on unauthorized access" do | |
it "should redirect back to original page" do | |
user = Factory(:user) | |
visit edit_user_path(user) | |
#Redirect 1: To the login path | |
fill_in :email, :with => user.email | |
fill_in :password, :with => user.raw_password | |
click_button | |
#Redirect 2: Back to edit path |
This file contains 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
div.matrix { | |
color: #060; | |
position: absolute; | |
font-family: mono-space, sans-serif; | |
font-size: 10px; | |
top: 5px; | |
left: 10px; | |
z-index: 2; | |
width: 99%; | |
overflow: hidden; |
This file contains 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
class LangDetect { | |
protected $dict = array( | |
'German' => array('ich','du','er','sie','es','wir','ihr','sie','der','die','das'), | |
'English' => array('i','you','he','she','it','we','us','they','this', 'the', 'a') | |
); | |
protected $sourceText; | |
public function __construct($text) { | |
$this->sourceText = $text; | |
} |
This file contains 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
describe "Users" do | |
describe "Sign up" do | |
describe "with invalid data" do | |
it "should not create user" do | |
lambda do | |
visit signup_path | |
fill_in "Name", :with => "" | |
fill_in "Email", :with => "" | |
fill_in "Password", :with => "" | |
fill_in "Confirm password", :with => "" |
This file contains 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
describe "Users" do | |
describe "Sign up" do | |
describe "with invalid data" do | |
it "should not create user" do | |
lambda do | |
visit signup_path | |
fill_in "Name", :with => "" | |
fill_in "Email", :with => "" | |
fill_in "Password", :with => "" | |
fill_in "Confirm password", :with => "" |