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
@if "%DEBUG%"=="" @echo off | |
setlocal enabledelayedexpansion | |
:: ===== | |
:: Command line arguments check: | |
:: ===== | |
if [%1]==[] ( | |
echo Usage: %0 arg-1 [arg-2] ... | |
exit /b 1 | |
) |
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
## ==> In C:\WINDOWS\system32\drivers\etc\hosts or /etc/hosts | |
#127.0.0.1 localhost | |
#127.0.0.1 cs2 | |
## ==> In httpd.conf or apache2.conf | |
#Virtual hosts | |
#Include conf/extra/httpd-vhosts.conf |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, shrink-to-fit=no" /> | |
<meta name="robots" content="index,follow" /> |
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
// leading semicolon prevents the IIFE from being passed as argument to concatenated code | |
// (see https://blog.mariusschulz.com/2016/01/13/disassembling-javascripts-iife-syntax) | |
;(function() { | |
'use strict'; | |
if (typeof extend !== 'function') { | |
function extend(target /*, ...sources */) { | |
if (arguments.length <= 1) { return target; } | |
if (!target) { target = {}; } |
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 static java.awt.Color.blue; | |
import static java.awt.Cursor.HAND_CURSOR; | |
import static java.awt.Cursor.getPredefinedCursor; | |
import static java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment; | |
import static java.awt.event.KeyEvent.VK_ENTER; | |
import static java.lang.System.err; | |
import static javax.swing.Box.createRigidArea; | |
import static javax.swing.BoxLayout.PAGE_AXIS; | |
import static javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED; | |
import static javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED; |
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
<?php | |
//! Encode all characters in every command line argument to their html entity equivalent: | |
//! (see http://stackoverflow.com/questions/3005116/how-to-convert-all-characters-to-their-html-entity-equivalent-using-php) | |
function toHtmlEntities($string) | |
{ | |
$convMap = array(0x000000, 0x10ffff, 0, 0xffffff); // could be extracted... | |
return mb_encode_numericentity($string, $convMap, "UTF-8"); | |
} |
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 static javax.xml.xpath.XPathConstants.NODESET; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.Reader; | |
import java.io.StringReader; | |
import java.util.ArrayList; | |
import java.util.List; |
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
.flipper { | |
overflow: hidden; | |
vertical-align: bottom; | |
white-space: nowrap; | |
} |
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
var Module; | |
(function (Module) { | |
'use strict'; | |
var Greeter = (function () { | |
// Define the Greeter class: | |
function Greeter(message) { | |
this.greeting = message; |
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 java.lang.reflect.Method; | |
/** | |
* Runtime environment-related utilities. | |
*/ | |
public class OS { | |
private static Object userInfoProvider; | |
private static Method userNameGetter; |
OlderNewer