Examples shown are bare minimum needed to achieve a simple goal.
- Google Chrome's Dev Tools' Network Panel
c-c-c-c-c-ULTIMATE c-c-c-COMBO!!!
- requestb.in enpoints for your HTTP Requests as a free service.
Examples shown are bare minimum needed to achieve a simple goal.
c-c-c-c-c-ULTIMATE c-c-c-COMBO!!!
<?php | |
namespace Application\Sonata\UserBundle\DataFixtures\ORM; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Common\DataFixtures\FixtureInterface; | |
use Application\Sonata\UserBundle\Entity\User; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
#!/usr/bin/env bash | |
# A basic Self Signed SSL Certificate utility | |
# by Andrea Giammarchi @WebReflection | |
# https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network | |
# # to make it executable and use it | |
# $ chmod +x certificate | |
# $ ./certificate # to read the how-to |
String.prototype.toSlug = function(){ | |
st = this.toLowerCase(); | |
st = st.replace(/[\u00C0-\u00C5]/ig,'a') | |
st = st.replace(/[\u00C8-\u00CB]/ig,'e') | |
st = st.replace(/[\u00CC-\u00CF]/ig,'i') | |
st = st.replace(/[\u00D2-\u00D6]/ig,'o') | |
st = st.replace(/[\u00D9-\u00DC]/ig,'u') | |
st = st.replace(/[\u00D1]/ig,'n') | |
st = st.replace(/[^a-z0-9 ]+/gi,'') | |
st = st.trim().replace(/ /g,'-'); |
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
<style lang="sass" scoped> | |
.app { | |
position : relative; | |
width : 100vw; | |
height : 100vh; | |
margin : 0 !important; | |
} | |
.appbar { | |
position : absolute; |
// Init packages for server | |
var express = require('express'); | |
var app = express(); | |
var server = require('http').createServer(app); | |
var io = require('socket.io')(server); | |
var fs = require('fs'); | |
// Install robot | |
var robot = require("robotjs"); |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
require 'json' | |
module Jekyll | |
module JsonContent | |
class Index < Jekyll::Page | |
attr_reader :page | |
def initialize site, base, dir, page | |
@site = site |
#!/bin/sh | |
# | |
# Dieses Script fragt nach einer Bildatei, die dann in die | |
# verschiedenen Favicon-Größen mittels sips-Kommandos | |
# umgewandelt werden. Ist auf dem Rechner das Programm | |
# ImageOptim installiert, dann werden die Bilddateien | |
# anschließend verlustlos optimiert. | |
# Farben in Variablen schreiben (schönerer Output) | |
reset='\x1B[0m' |