Skip to content

Instantly share code, notes, and snippets.

@charlesj
charlesj / reclaimWindows10.ps1
Created January 7, 2017 21:42 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
<?php
$url = file_get_contents("http://inspirobot.me/api?generate=true");
header('Content-Type: application/json');
echo "{'text':'$url','response_type':'in_channel'}";
?>
@charlesj
charlesj / 0_reuse_code.js
Created April 6, 2016 15:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am charlesj on github.
  • I am charlesj (https://keybase.io/charlesj) on keybase.
  • I have a public key ASDhFMZ5rG5Jf2kPUax1f2IGdiTnNl4u5kBvBD-Dh7SM5Ao

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am charlesj on github.
  • I am charlesj (https://keybase.io/charlesj) on keybase.
  • I have a public key whose fingerprint is 3694 D181 679D 5096 C3D8 1EF4 F3D1 EA43 6E12 A5B0

To claim this, I am signing this object:

@charlesj
charlesj / index.html
Created February 13, 2013 00:53 — forked from darwin/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">Comix Sample</tspan>
</label>
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59">
public class Breeder
{
public double ChanceOfMutation { get; private set; }
public Couple Couple { get; private set; }
public Breeder(double chanceOfMutation, Couple couple)
{
Couple = couple;
ChanceOfMutation = chanceOfMutation;
}
public class EditWebpagePermission : IWebsitePermission
{
public bool HasOption
{
get { return true; }
}
public bool Check(Models.User user, System.Web.Mvc.ActionExecutingContext context)
{
//okay there are alot of things that need to be checked here.
public interface IWebsitePermission
{
//whether or not this permission has some value to check against
bool HasOption { get; }
//this is the function that will actually conduct the authorize
bool Check(User user, ActionExecutingContext context);
//the value to check against
string Option { get; set; }
//this is for UI / organization purposes
string Description { get; }