| Exercise | Notes |
|---|---|
| T01.01-Exercise-CreateLayout | |
| T01.02-Exercise-DisplayToyList | |
| T01.03-Exercise-AddScrolling |
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
| // ==UserScript== | |
| // @name Extension Fingerprint Blocker (LinkedIn) | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Blocks LinkedIn from detecting installed Chrome extensions | |
| // @author Anonymous | |
| // @match *://*.linkedin.com/* | |
| // @match *://linkedin.com/* | |
| // @grant none | |
| // @run-at document-start |
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
| # | |
| # 0. WITHOUT PARALLEL -> EVERYTHING IS FINE | |
| # 1. COMMENTED BEHAVIOUR -> EVERYTHING IS FINE | |
| # 2. UNCOMMENTED BEHAVIOUR: | |
| # $ sage sage-parallel-broken-assumptions.sage | |
| # params = [-max(A, B, C)] | |
| # thread_suspend failed | |
| # Aborted | |
| # |
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
| ln -s /usr/lib/mono/gac/nunit.core.dll /usr/lib/monodevelop/AddIns/NUnit/nunit.core.dll | |
| ln -s /usr/lib/mono/gac/nunit.core.interfaces.dll /usr/lib/monodevelop/AddIns/NUnit/nunit.core.interfaces.dll | |
| ln -s /usr/lib/mono/gac/nunit.framework.dll /usr/lib/monodevelop/AddIns/NUnit/nunit.framework.dll | |
| ln -s /usr/lib/mono/gac/nunit.util/2.4.8.0__96d09a1eb7f44a77/nunit.util.dll /usr/lib/monodevelop/AddIns/NUnit/nunit.util.dll |
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
| <?php | |
| if (isset($_SERVER['HTTPS']) AND $_SERVER['HTTPS'] == 'on') { | |
| $_SERVER['SERVER_PORT'] = '443'; | |
| } | |
| else { | |
| $_SERVER['SERVER_PORT'] = '80'; | |
| } | |
| use Symfony\Component\ClassLoader\ApcClassLoader; |
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 filters | |
| import play.api.mvc._ | |
| import controllers.Default | |
| import play.api.libs.iteratee.Enumerator | |
| import play.Logger | |
| object CorsFilter extends Filter { |
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
| #!/bin/bash | |
| DBUSER=user | |
| DBPASSWORD=pwd | |
| DBSNAME=sourceDb | |
| DBNAME=destinationDb | |
| DBSERVER=db.example.com | |
| fCreateTable="" | |
| fInsertData="" |
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 com.typesafe.config.ConfigFactory | |
| import scala.slick.session.Database | |
| import scala.slick.session.Database.threadLocalSession | |
| import scala.slick.jdbc.StaticQuery.interpolation | |
| import org.slf4j.LoggerFactory | |
| import java.sql.Date | |
| object Main extends App { | |
| val config = ConfigFactory.load() | |
| val log = LoggerFactory.getLogger(getClass) |
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
| require 'formula' | |
| # Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
| # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
| class Pulseaudio < Formula | |
| homepage '' | |
| url 'http://freedesktop.org/software/pulseaudio/releases/pulseaudio-1.1.tar.gz' | |
| sha1 'acfd86b40f9574e419d33f1dbaef7e172a6b6011' |
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
| #include "utis.h" | |
| template <class T> | |
| void fillrand(T* ar, int n, int max = 100) | |
| { | |
| srand(time(0)); | |
| for (int k = 0; k < n; k++) { | |
| ar[k] = rand() % max; | |
| } | |
| } |
NewerOlder