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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Copyright (c) Rich Hickey. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
; which can be found in the file CPL.TXT at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. | |
;dimensions of square world |
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
package how.to.use.mockito; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertThat; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.verify; | |
import static org.mockito.Mockito.when; | |
import java.io.ByteArrayInputStream; | |
import java.io.FileOutputStream; |
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
package how.to.use.mockito; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.net.URL; | |
import java.nio.channels.Channels; | |
import java.nio.channels.ReadableByteChannel; | |
public class Util { | |
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
package how.to.use.mockito; | |
import java.math.BigDecimal; | |
import javax.naming.NamingException; | |
public class EJBExample { | |
private static LogCategory log = new LogCategory("EJBExample", "how.to.use.mockito.EJBExample"); |
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
// ==UserScript== | |
// @name github-stars | |
// @namespace https://github.com/ | |
// @description Add stars link to github head | |
// @include https://github.com/* | |
// @version 1.0.0 | |
// @grant none | |
// ==/UserScript== | |
$('.header-nav.left').append('<li class="header-nav-item">' + | |
'<a data-ga-click="Header, go to stars, text:stars" href="https://github.com/stars" class="header-nav-link">' + |
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
// ==UserScript== | |
// @name youtube-subscriptions-refresh.user.js | |
// @namespace https://www.youtube.com/feed/subscriptions | |
// @description Make My Subscriptions tab clickable for refresh | |
// @include https://www.youtube.com/feed/subscriptions | |
// @version 1.0.0 | |
// @grant none | |
// ==/UserScript== | |
var tab = document.getElementsByClassName("epic-nav-item-heading")[0]; | |
tab.addEventListener("click", function () { |
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
#/etc/X11/xorg.conf.d/xorg.conf | |
#Use capslock button to change keyboard layouts. | |
Section "InputClass" | |
Identifier "keyboard-all" | |
Driver "evdev" | |
Option "XkbLayout" "us,ru" | |
Option "XkbOptions" "grp:caps_toggle,grp_led:scroll" | |
MatchIsKeyboard "on" | |
EndSection |
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
[user] | |
name = user | |
email = user@gmail.com | |
[alias] | |
co = checkout | |
s = status | |
b = branch | |
c = commit -a -m | |
l = log --stat | |
g = log --graph |
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
#/etc/grub.d/40_custom | |
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
menuentry "Windows 7" { | |
insmod part_msdos | |
insmod ntfs |
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
// ==UserScript== | |
// @name github-network.user.js | |
// @namespace https://github.com/ | |
// @description Add network menu item to the main page of repository | |
// @include https://github.com/* | |
// @version 2.0.1 | |
// @grant none | |
// ==/UserScript== | |
var repo = window.location.pathname; | |
if (repo) { |
OlderNewer