This file contains hidden or 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"> | |
<link rel="stylesheet" href="./style.css"> | |
</head> | |
<body> | |
<aside> | |
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 297.6 297.6" style="enable-background:new 0 0 297.6 297.6;" xml:space="preserve"> | |
<g> |
This file contains hidden or 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
#!/bin/bash | |
# Declare Session Variable | |
SESSION="ey" | |
function hassession { | |
tmux has-session -t ey 2>/dev/null | |
} | |
# Change to the Webshop 4 Project Dir |
This file contains hidden or 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
require "prawn" | |
Prawn::Document.generate("boxes.pdf") do | |
y = 20 | |
x = 700 | |
a = 15 | |
gap = 5 | |
6.times do |number| | |
stroke_rectangle [y, x], a, a |
This file contains hidden or 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
package pd; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.security.KeyManagementException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.cert.X509Certificate; | |
import java.util.concurrent.Semaphore; | |
import java.io.*; |
This file contains hidden or 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
# Image Converter for the NILE Webshop 3.0 | |
# | |
# Converts the Name in the new stadard formated Name. | |
# Converts the jpgs to png | |
# | |
class WebshopImageConverter | |
attr_accessor :file, :style_number, :back, :color, :file_type | |
def initialize(file) | |
@file = file |
This file contains hidden or 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
sql = 'CREATE TABLE update_prices | |
AS ( | |
SELECT temp_art AS article_id, price_value | |
FROM ( | |
SELECT *, id AS temp_art | |
FROM articles | |
WHERE id IN ( | |
SELECT DISTINCT Z1.article_id | |
FROM ordering_pre_order_items AS Z1 | |
WHERE Z1.pre_order_id IN ( |
This file contains hidden or 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
var ENTRYLIMIT = 148; | |
Function.prototype.method = function(name,func){ | |
this.prototype[name] = func; | |
return this; | |
}; | |
Array.method('find', function(value){ | |
for(var i = 0; i < this.length; i++) { | |
if(this[i] >= value){ |
This file contains hidden or 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
# ruby version: 1.9.3p136 | |
# rails version: 3.2.6 | |
# mysql2 version: 0.3.11 | |
# User - Schema: | |
# ============= | |
# Table name: users | |
# | |
# id :integer(4) not null, primary key |
This file contains hidden or 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
without spork: | |
real 0m55.521s | |
user 0m36.810s | |
sys 0m2.331s | |
with sprok: | |
real 0m40.877s | |
user 0m34.737s |