Skip to content

Instantly share code, notes, and snippets.

<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
<?php
$i = 0;
$dirname = "media/images/iconized/";
$images = glob($dirname."*.png");
/*
I do not think that this is a good algorithm, ... :(
*/
foreach($images as $image) {
echo "<div class="row">";
@SpEcHiDe
SpEcHiDe / my.html
Created June 20, 2016 18:07
Code Obfuscator
<!-- textfield to accept input -->
<input type="text" id="f1">
<!-- div to show the output -->
<div id="f2"></div>
<button type="button" onclick="dothis()">Obfuscate</button>
<script>
var dothis = function(){
@SpEcHiDe
SpEcHiDe / $post.js
Created June 16, 2016 16:34
backing up hardware
var sendData = function(type, URL, formData, callBack){
// create a XHR object
var xhr = new XMLHttpRequest();
// open the XHR object in asynchronous mode
xhr.open(type, URL, true);
//xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=ISO-8859-1')
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
// OK! we have a successful response.
var response = xhr.responseText;
@SpEcHiDe
SpEcHiDe / app.js
Created June 5, 2016 07:27
AngularJS : custom routes
var app = angular.module('portfolio', ['ngRoute']);
// create the controller and inject Angular's $scope
app.controller('mainController', function($scope) {
// create a message to display in our view
$scope.message = 'Everyone come and see how good I look!';
});
// configure our routes
app.config(function($routeProvider, $locationProvider) {

Keybase proof

I hereby claim:

  • I am spechide on github.
  • I am spechide (https://keybase.io/spechide) on keybase.
  • I have a public key ASCYu5rfydg5X_qaqch6uM0i_lpaKGavqY2HyanL4iULGAo

To claim this, I am signing this object: