Skip to content

Instantly share code, notes, and snippets.

View ashnur's full-sized avatar
🐢
fragments of scrolls surround me

Aron Gabor ashnur

🐢
fragments of scrolls surround me
View GitHub Profile
<div class="box_default right" style="width: 290px; height: 250px;">
<div class="box_title">
<div class="bt_header bth_fixed" style="background:
#9c110c; color: #fff; "><a style="color: #fff;" target="_blank"
href="http://www.hatharom.hu">Hathárom.hu</a> - <a style="color:
#fff;" target="_blank" href="http://63.hu/">63.hu</a> -
Sporthírek</div>
<div class="bt_arrow "></div>
</div>
<div class="box_default_content"></div>
@ashnur
ashnur / gist:2063152
Created March 17, 2012 17:31 — forked from FireyFly/gist:2000920
Object inheritance
var Base = {}
Object.defineProperty(Base, 'extend', {
enumerable: false,
value: function(obj) {
var descs = {}
Object.getOwnPropertyNames(obj).forEach(function(key) {
descs[key] = Object.getOwnPropertyDescriptor(obj, key)
})
return Object.create(this, descs)
"use strict";
var z,y,i;
var i =-100;
function Obiekt(z,y,t,iddiv) {
var self = this;
self.ruch = function() {
++i;
$(iddiv).css('left', ($("#punkt").position().left)+i);//I want send var. indiv in place on orbita1
$(iddiv).css('top', ($("#punkt").position().top) + (Math.round(Math.sqrt((1-Math.pow(i,2)/Math.pow(z,2))*Math.pow(y,2)))));//I want send var. indiv in place on orbita1
}
@ashnur
ashnur / tmEAaKsk
Created May 7, 2012 03:31 — forked from anonymous/tmEAaKsk
a guest on May 6th, 2012 - pastebin.com/tmEAaKsk
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
//$(document).ready(function(){
var context;
var dx= 4;
var dy=4;
var y=150;
var x=10;
var rightDown = false;
var leftDown = false;
#Debian default list
deb http://ftp.de.debian.org/debian stable main contrib non-free security updates
deb-src http://ftp.de.debian.org/debian stable main contrib non-free security updates
@ashnur
ashnur / firefox.log
Created May 11, 2012 11:24
LD_DEBUG=files firefox > firefoxlog 2>&1
26504:
26504: file=libpthread.so.0 [0]; needed by firefox [0]
26504: file=libpthread.so.0 [0]; generating link map
26504: dynamic: 0xb7749e98 base: 0xb7732000 size: 0x0001a1fc
26504: entry: 0xb7737b30 phdr: 0xb7732034 phnum: 9
26504:
26504:
26504: file=libdl.so.2 [0]; needed by firefox [0]
26504: file=libdl.so.2 [0]; generating link map
26504: dynamic: 0xb7730eb8 base: 0xb772d000 size: 0x00004074
@ashnur
ashnur / make.log
Created May 13, 2012 05:59
mpc issue
[ashnur@myhost ../frontend]$ make --debug
GNU Make 3.82
Built for i686-pc-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
File `all' does not exist.
@ashnur
ashnur / APPNAME
Created May 21, 2012 14:29 — forked from eculver/APPNAME
init.d script for node.js for debian
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
@ashnur
ashnur / \\etc\\init\\APPNAME.conf
Created May 21, 2012 16:03 — forked from shimondoodkin/\\etc\\init\\APPNAME.conf
an Upstart script for node.js app I used once ago, it demonstrates how to use nave from within a script, just replace node with nave use with node version
#!upstart
description "APPNAME node.js server"
author "Shimon Doodkin"
# license: public domain
start on runlevel [2345]
stop on runlevel [06]
#pre-start script
# exec touch /var/log/APPNAME.nodejs.log
server.coffee server.js X
fs = require('fs');
ecstatic = (require('ecstatic'))(__dirname);
uri = require('URIjs');
async = require('async');