I hereby claim:
- I am nurtext on github.
- I am nurtext (https://keybase.io/nurtext) on keybase.
- I have a public key whose fingerprint is 2E24 B2EC 678A E429 6488 0477 5286 0A8C 6B1C 2706
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
* Copyright (c) 1991, 1993 | |
* The Regents of the University of California. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |
Ti.UI.setBackgroundColor('#fff'); | |
var tabGroup = Ti.UI.createTabGroup(); | |
var win1 = Ti.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}); | |
var tab1 = Ti.UI.createTab({ |
<? | |
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); |
tell application "Mail" | |
using terms from application "Mail" | |
set theSelection to selection | |
set theMessage to first item of theSelection | |
set theBody to "message:%3C" & message id of theMessage & "%3E" | |
set theSubject to the subject of theMessage | |
tell application "Reminders" | |
set theList to first item of reminders | |
make new reminder with properties {name:theSubject, body:theBody, container:theList} | |
end tell |
<?php | |
// Loop until the 20th binary digit of 0 | |
for ($bin = 1; $bin < 20; $bin++) | |
{ | |
// 1 has always one digit more than 0 | |
$bin_str = str_repeat('1', $bin +1) . str_repeat('0', $bin); | |
// Convert binary to decimal | |
$dec = bindec($bin_str); | |
<?php | |
// Optional | |
date_default_timezone_set('Europe/Berlin'); | |
// Set the date to tomorrow (midnight) | |
$tomorrow = new DateTime('tomorrow'); | |
// Print the result | |
print_r($tomorrow); |
#target photoshop | |
function sort_unique(arr) | |
{ | |
arr = arr.sort(); | |
var ret = [arr[0]]; | |
for (var i = 1; i < arr.length; i++) | |
{ | |
if (arr[i-1] !== arr[i]) { ret.push(arr[i]); } |
<?php | |
// Example class | |
class Hello | |
{ | |
// Just a simple function wich returns a string | |
public function World($name = 'World') | |
{ | |
return sprintf("Hello %s\n", $name); | |
} |
<!doctype html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS3 Accordion</title> | |
<style> | |
#accordion { | |
width: 810px; | |
height: 600px; | |
margin: 20px auto; |