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
| sudo apt-get install gnome-session-flashback | |
| sudo apt update && sudo apt install ttf-mscorefonts-installer | |
| to get courier new. | |
| put into /etc/fonts/fonts.conf, google to check if there's an alternative location for fonts.conf or if you need | |
| to make your own. | |
| <match target="font"> | |
| <test name="family" qual="any"> |
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
| (function() { | |
| // | finds the owner of the specified property based on prototype chain. | |
| function object_whose(propName) { | |
| if (this.hasOwnProperty(propName)) return this; | |
| var p = this.__proto__; | |
| while (p) { | |
| p = p.__proto__; | |
| if (p.hasOwnProperty(propName)) { | |
| return p; |
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
| # http://technet.microsoft.com/en-us/library/ee692685.aspx | |
| # F7 = history | |
| # Alt+F7 = history -c | |
| # F8 = Ctrl+R | |
| Set-Location C: | |
| # Easier navigation | |
| Set-Alias o start | |
| function oo {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
| /* | |
| * Copyright 2011 Rolando Abarca. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| /* | |
| * Copyright 2011 Rolando Abarca. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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 Control.Monad | |
| ------------------------------------------------------------------------------- | |
| -- State Monad Implementation | |
| ------------------------------------------------------------------------------- | |
| newtype State s a = State { runState :: s -> (a,s) } | |
| instance Monad (State s) where | |
| return a = State $ \s -> (a, s) |
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 Lisp; | |
| use strict; | |
| use warnings; | |
| use Scalar::Util qw/looks_like_number/; | |
| use List::MoreUtils qw/zip/; | |
| sub new { | |
| my $env; $env = { | |
| ':label' => sub { my ($name, $val) = @_ ; $env->{$name} = $val;}, | |
| ':quote' => sub { $_[0] }, |
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 notepad; | |
| import javax.swing.*; | |
| import java.awt.*; | |
| import java.awt.event.*; | |
| import java.util.Scanner; | |
| import java.io.*; | |
| public class Notepad extends JFrame implements ActionListener { | |
| private TextArea textArea = new TextArea("", 0,0, TextArea.SCROLLBARS_VERTICAL_ONLY); |