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
sudo -s | |
cd /var/cache/debconf | |
rm *.dat | |
apt-get update && apt-get upgrade |
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
sudo rm /var/lib/apt/lists/lock | |
You may also need to delete the lock file in the cache directory | |
sudo rm /var/cache/apt/archives/lock |
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
Enable ctrl-alt-backspace to kill xserver | |
sudo apt-get install gnome-tweak-tool | |
to launch type: | |
gnome-tweak-tool | |
Install pipelight so silverlight works | |
sudo apt-add-repository ppa:pipelight/stable | |
sudo apt-get update | |
sudo apt-get install pipelight-multi |
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
sudo ln -s /usr/bin/nodejs /usr/local/bin/node |
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
Write some components, let them dispatch actions. | |
Write some reducers to handle those actions. | |
Wrap some components in connect() to receive the next state. | |
Repeat! |
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
function isElementInViewport(el) { | |
var rect = el.getBoundingClientRect(); | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && | |
rect.right <= (window.innerWidth || document.documentElement.clientWidth) | |
); | |
} |
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
module App exposing (..) | |
import Html exposing (Html, div, text) | |
import Html.App | |
-- MODEL | |
type alias Model = | |
String | |
init: ( Model, Cmd Msg ) |
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
import Html exposing (text) | |
main = | |
let | |
(x, y, z) = | |
tuple | |
in | |
text <| toString <| x + y + z | |
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
[{item = { pid = 1 }, qty = 1 }, ...] | |
List.sortBy (.item >> .pid) listOfItems |
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
import Html exposing (text) | |
transform : List Int -> List Int | |
transform = | |
List.map ((*) 2) | |
<< List.filter (flip (%) 2 >> (==) 0) | |
main = | |
[1,2,3,4,5,6,7,6,2] | |
|> text |
OlderNewer