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
/** | |
* Wrap text to a maximum of 78 char per line. Indent the text using the number | |
* of spaces specified by indent. | |
*/ | |
function wrap(text, indent) { | |
if (!text) { | |
console.log(); | |
return; | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace Formix.Utils | |
{ | |
class Program |
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
/**************************************************************************** | |
* Copyright 2009-2015 Jean-Philippe Gravel, P. Eng. CSDP | |
* | |
* Modified 4/7/16 - Jean-Philippe Gravel (@formix) - Moved random number | |
* generator into the method "if" statement. | |
* | |
* Modified 6/8/15 - Osric Wilkinson (@Moosemorals) - No point messing with | |
* random seeds. Just use SecureRandom. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); |
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 com.neolitec.examples; | |
import org.apache.commons.codec.binary.Base64; | |
import org.apache.commons.lang.StringUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.servlet.*; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
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
using System; | |
using System.IO; | |
using System.Text; | |
using System.Web; | |
namespace BasicAuthenticationFlashTalk | |
{ | |
public class BasicAuthenticationModule : IHttpModule | |
{ |
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
/**************************************************************************** | |
* Copyright 2009-2018 Jean-Philippe Gravel, P. Eng., PSEM | |
* | |
* Modified 07/31/16 - Jean-Philippe Gravel (@formixian) - Changed the class | |
* def to static instead of being an instance class. | |
* - Changed license to Apache 2.0 | |
* 02/08/18 - Added Obfuscate and Clarify methods | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. |
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
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
map <F6> :tabe<Space> | |
map <F7> :tabp<CR> | |
map <F8> :tabn<CR> | |
colorscheme xoria256 | |
set expandtab tabstop=4 shiftwidth=4 |
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"> | |
<title>title</title> | |
<!-- | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
--> | |
</head> |
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 extend = require("util")._extend; | |
module.exports.example1 = function() { | |
return { | |
characteristics: { | |
length: extend(new Char("length"), { | |
validate: validateLength |
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
/**************************************************************************** | |
* Copyright 2009-2020 Jean-Philippe Gravel, P. Eng. PSEM | |
* Conversion to C# from https://gist.github.com/formix/d9521fd49cbeee305e2a | |
* | |
* 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 | |
* |
OlderNewer