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
use Scalar::Util ('blessed'); | |
###############################| Declassify |############################### | |
sub Declassify | |
{ | |
my @params = @_; | |
shift (@params) if ($params[0] eq __PACKAGE__); | |
my @args = (ref $params[0] eq 'ARRAY') ? @{$params[0]} : (); | |
my $pkg = $params[1] || __PACKAGE__; |
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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class CommandLine | |
{ | |
private static final BufferedReader input; | |
static | |
{ | |
input = new BufferedReader(new InputStreamReader(System.in)); |
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>Layers</title> | |
<style type="text/css"> | |
#loading, #loaded | |
{ | |
position: fixed; |
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>Encode/Decode Base64</title> | |
<style type="text/css"> | |
body | |
{ | |
margin: 0px; |
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>Save URL Contents</title> | |
<style type="text/css"> | |
body | |
{ |
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
#----------------------------------# | |
# localtime() array reference # | |
#----------------------------------# | |
# 0 - seconds # | |
# 1 - minutes # | |
# 2 - hours # | |
# 3 - day of month # | |
# 4 - month # | |
# 5 - year # | |
# 6 - day of week # |
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 ($) | |
{ | |
$.styleExists = function (s) | |
{ | |
var exists = false; | |
var stylesheets = document.styleSheets; | |
for (var sx = 0, sl = stylesheets.length; sx < sl; sx += 1) | |
{ | |
var sheetclasses = stylesheets[sx].rules || document.styleSheets[sx].cssRules; |
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.Linq; | |
using System.Collections.Generic; | |
namespace SampleNamespace | |
{ | |
class WrappedList<T> | |
{ | |
private List<T> list = new List<T>(); | |
private object sync = new object(); |
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
barMargin = (150 * Math.exp(-0.15 * array.length)) |
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
public abstract class MyRESTResource : RESTResource | |
{ | |
protected JObject GetJsonPayload(HttpListenerRequest request) | |
{ | |
try | |
{ | |
string data = this.GetPayload(request); | |
if (!object.ReferenceEquals(data, null)) | |
{ | |
JObject json = JObject.Parse(data); |