duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| Miguel at 12:15 in path ~/Desktop | |
| $ php test.php | |
| doing things inside the function | |
| I am a calback | |
| Array | |
| ( | |
| [0] => one | |
| [1] => two | |
| [2] => three | |
| ) |
| beforeEach( function(){ console.log("Global before each")} ); | |
| describe( "Describe 1", function(){ | |
| beforeEach( function(){ console.log("Describe 1 - before each 1")} ); | |
| beforeEach( function(){ console.log("Describe 1 - before each 2")} ); | |
| //do tests... | |
| it("a test...", function(){ | |
| //if there is not a "it()", the beforeEach/afterEach does not execute | |
| }); |
| var scope, compiledTemplate, UserService, deferred; | |
| //We must load the app module | |
| //and VERY IMPORTANT, the template the directive uses via templateUrl | |
| var TEMPLATE_URL = 'app/account/public/views/signupForm.html'; //proper path to the template | |
| var TEMPLATE_KEY = '/app/account/public/views/signupForm.html'; //as loaded in the directive, used as Key in the tempalteCache | |
| beforeEach( module( 'tybaNg', TEMPLATE_URL ) ); | |
| #Install Gource in Ubuntu | |
| ======================== | |
| #Go to the folder.... and | |
| #see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo | |
| sudo apt-get update | |
| sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev | |
| ./configure | |
| make | |
| sudo make install |
| <?php | |
| interface Option/*[T]*/ { | |
| /** | |
| * @return T | |
| */ | |
| public function get(); | |
| /** | |
| * @param => T $f |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
~=&&| // From: http://alvinalexander.com/scala/scala-class-object-function-convert-multiline-string-to-list-seq | |
| implicit class QHelper( val sc : StringContext) { | |
| def Q(args : Any*): Seq[String] = { | |
| val strings = sc.parts.iterator | |
| val expressions = args.iterator | |
| var buf = new StringBuffer(strings.next) | |
| while(strings.hasNext) { | |
| buf append expressions.next | |
| buf append strings.next |
| import scala.util.Random | |
| object ProgressBar extends App { | |
| // list of times to sleep between each step of the progess, with different probabilities | |
| val timesToSleep = List(500, 500, 500, 500, 600, 600, 600, 1000, 1000, 1000, 2000, 2000, 5000) | |
| print("Progress [ ]") | |
| Thread.sleep(500); | |
| // 11 backspaces to override " ]" |
| import scala.language.postfixOps | |
| import scala.util.{Success, Failure} | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import scala.concurrent.duration._ | |
| import scala.concurrent._ | |
| import scala.util.Try | |
| import sys.process._ | |
| import concurrent.Future | |
| import concurrent.Promise |