This file contains 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
history -c |
This file contains 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
find . -exec grep -l word_you_are_searching_for {} \; 2>/dev/null |
This file contains 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
Performance : Optimization of slow pages (various tasks under EPIC "performance" and more) | |
1. QUERY performance | |
enabled Query Log (/admin/config/development/devel) - visit/identify pages with slow queries | |
EXPLAIN the queries - http://cyrve.com/explain | |
possible fixes | |
-> add Indexes | |
-> remove unecessary JOINs | |
-> minimise the item it has to sort | |
-> last resort - caching |
This file contains 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
<div class="copyright"> | |
Copyright 2015 © XYZ BLABLA - All rights reserved | Website designed by | |
<a href="http://abcdef.com" target="_blank">ABC studio</a> and engineered by | |
<a href="http://ghijkl.com" target="_blank">Bluemyria</a> | |
</div> |
This file contains 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
# for files only | |
find ./ -type f -exec chmod 644 {} + | |
# for directories only | |
find ./ -type d -exec chmod 755 {} + |
This file contains 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
let Bullet: game.LedSprite = null | |
let Ship: game.LedSprite = null | |
let Invader: game.LedSprite = null | |
basic.forever(() => { | |
Invader = game.createSprite(Math.random(5), 0) | |
Invader.set(LedSpriteProperty.Brightness, 255) | |
for (let i = 0; i < 4; i++) { | |
Invader.change(LedSpriteProperty.Y, 1) | |
basic.pause(2000) |
This file contains 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
from tkinter import * | |
import random | |
import time | |
#für unseren Ball brauchen wir eine Klasse | |
class Ball: | |
def __init__(self, canvas, paddle, color): | |
#der Ball muss unser Canvas kennen | |
self.canvas = canvas | |
#Der Ball soll den Paddel auch kennen |
This file contains 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
# Wichtige Variablen | |
PLAYGROUND_WIDTH=300 | |
PLAYGROUND_HEIGHT=200 | |
PLAYGROUND_COLOR='powder blue' | |
SNAKE_HEAD_COLOR='green' | |
SNAKE_BODY_COLOR='green' | |
SNAKE_MOVING_SPEED=10 | |
# importiere module | |
try: |
This file contains 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
PLAYGROUND_WIDTH=300 | |
PLAYGROUND_HEIGHT=200 | |
PLAYGROUND_COLOR='white' | |
SNAKE_HEAD_COLOR='green' | |
SNAKE_BODY_COLOR='green' | |
SNAKE_MOVING_SPEED=10 | |
try: | |
import Tkinter | |
except: |
This file contains 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
# Creating Ground | |
def creating_playground(self): | |
self.board=Tkinter.Canvas(self, width=PLAYGROUND_WIDTH, height=PLAYGROUND_HEIGHT, background=PLAYGROUND_COLOR) | |
self.board.pack(padx=10, pady=10) | |
return | |
OlderNewer