I hereby claim:
- I am bjorn-ali-goransson on github.
- I am bjornagoransson (https://keybase.io/bjornagoransson) on keybase.
- I have a public key ASAro2TnvjBS__JKCLOkouQh3UcZAs-qKafn7SGpdQMLgAo
To claim this, I am signing this object:
# http://robertwesterlund.net/post/2014/12/27/removing-utf8-bom-using-powershell | |
foreach($file in Get-ChildItem -Path $PSScriptRoot -Include *.php -Recurse -ErrorAction Continue -Force) { | |
$reader = $file.OpenRead() | |
$byteBuffer = New-Object System.Byte[] 3 | |
$bytesRead = $reader.Read($byteBuffer, 0, 3) | |
if ($bytesRead -eq 3 -and | |
$byteBuffer[0] -eq 239 -and | |
$byteBuffer[1] -eq 187 -and | |
$byteBuffer[2] -eq 191) |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography; | |
namespace Rest.Authentication | |
{ | |
public class AwsAuthenticator : RestSharp.Authenticators.IAuthenticator | |
{ | |
public string AccessKeyId { get; } |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Text; | |
namespace Cloudy.CMS.UI.ContentAppSupport.NameExpressionParserSupport | |
{ | |
public class Disassembler // http://www.albahari.com/nutshell/cs4ch18.aspx | |
{ |
<?php | |
function define_find( $filename = 'wp-config.php' ) { // https://github.com/interconnectit/Search-Replace-DB/blob/master/index.php#L726 | |
if ( $filename == 'wp-config.php' ) { | |
$filename = dirname( __FILE__ ) . '/' . basename( $filename ); | |
// look up one directory if config file doesn't exist in current directory | |
if ( ! file_exists( $filename ) ) | |
$filename = dirname( __FILE__ ) . '/../' . basename( $filename ); |
I hereby claim:
To claim this, I am signing this object:
/* HAS ATTRIBUTE */ | |
$.fn.hasAttr = function(attrName){ | |
var element = this[0]; | |
if(element.hasAttribute){ | |
return element.hasAttribute(attrName); |
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
</head><body> | |
<div class="container"><span class="btn btn-success"><i class="fa fa-coffee"></i></span></div> | |
</body></html> |
Toast.makeText(getApplicationContext(), "Hello toast!!", Toast.LENGTH_LONG).show() |
<?php | |
require 'wp-blog-header.php'; | |
if(isset($_GET['delete_post'])){ | |
wp_delete_post($_GET['delete_post']); | |
die; | |
} | |
?> |