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 getAgeStr = function(dateString) { | |
| var myDate = new Date(dateString), | |
| now = new Date(), | |
| month_of_birth=myDate.getMonth(), | |
| day_of_birht=myDate.getDay(), | |
| year_of_birth=myDate.getYear(), | |
| now_month = now.getMonth(), | |
| now_day = now.getDay(), | |
| now_year = now.getYear(), | |
| age = now_year - year_of_birth; |
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
| function createCookie(name,value,days) { | |
| if (days) { | |
| var date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| var expires = "; expires="+date.toGMTString(); | |
| } | |
| else var expires = ""; | |
| document.cookie = name+"="+value+expires+"; path=/"; | |
| } |
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 randomFromTo = function(from, to){ | |
| return Math.floor(Math.random() * (to - from + 1) + from); | |
| }; |
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 dodatkoweParametry = {id:123,'login':'ala'}; | |
| setTimeout(function() { | |
| zrobCos(dodatkoweParametry); | |
| }, 500); | |
| setInterval(function() { | |
| zrobCos(dodatkoweParametry); | |
| }, 500); |
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 data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
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
| [global] | |
| netbios name = HP | |
| workgroup = WORKGROUP | |
| server string = HP | |
| log file = /var/log/samba/log.%m | |
| security = user | |
| create mask = 0666 | |
| force create mode = 0666 | |
| force directory mode = 0777 | |
| follow symlinks = yes |
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
| dim strScript | |
| strScript = chr(34) & "C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" & chr(34) & " -startvm Devel -e TCP/Ports=8000" | |
| Set WshShell = CreateObject("WScript.Shell") | |
| WshShell.Run strScript, 0 | |
| Set WshShell = Nothing |
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
| TARGET = main | |
| CC = /usr/local/CrossPack-AVR/bin/avr-gcc | |
| OBJCOPY = /usr/local/CrossPack-AVR/bin/avr-objcopy | |
| MCU = atmega8 | |
| F_CPU = 1000000 | |
| CFLAGS = -mmcu=$(MCU) -gdwarf-2 -DF_CPU=$(F_CPU)UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums | |
| CFLAGS += -Wall -Wstrict-prototypes -I./lib -std=gnu99 | |
| OBJECTS = |
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 pl.kitek.asyncloadimg; | |
| import android.content.Context; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.BaseAdapter; | |
| import android.widget.GridView; | |
| import android.widget.ImageView; | |
| public class ImageAdapter extends BaseAdapter { |
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 pl.kitek.asyncloadimg; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.MalformedURLException; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.os.AsyncTask; | |
| import android.widget.ImageView; |