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> | |
| <head> | |
| </head> | |
| <body> | |
| <button onclick="login()">Login</button> | |
| <button onclick="me()">Me</button> | |
| <!--<button onclick="getSession()">Get session</button>--> | |
| <button onclick="getLoginStatus()">Get login</button> | |
| <button onclick="logout()">Logout</button> |
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
| # encoding: UTF-8 | |
| require 'net/http' | |
| require 'json' | |
| module Boxee | |
| class Rename | |
| class File | |
| attr_reader :path, :name, :extension, :part, :canonical |
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
| //alert( localStorage.site ); | |
| gApp = new Array(); | |
| gApp.deviceready = false; | |
| gApp.c2dmregid = ''; | |
| window.onbeforeunload = function(e) { | |
| if ( gApp.c2dmregid.length > 0 ) | |
| { |
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
| <?php | |
| // Production | |
| // APNs Push testen auf Token | |
| $deviceToken = "XXX"; | |
| // Payload erstellen und JSON codieren | |
| $payload['aps'] = array('alert' => 'Hello World!', 'badge' => 1, 'sound' => 'default'); | |
| $payload = json_encode($payload); | |
| $apnsHost = 'gateway.push.apple.com'; |
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
| import java.util.*; | |
| class Untitled { | |
| public static void main(String[] args) { | |
| Scanner scanner = new Scanner(System.in); | |
| Integer number = scanner.nextInt(); | |
| kaprekar(number); | |
| } | |
| public static boolean kaprekar(Integer numberInteger) { |
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
| private int[] a; | |
| private int n; | |
| public void sort(int[] a) | |
| { | |
| this.a = a; | |
| n = a.length; | |
| quicksort(0, n - 1); | |
| } |
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
| import java.util.*; | |
| class Aufgabe1 { | |
| public static void main(String[] args) { | |
| int out = 0; | |
| System.out.println("Dieses Programm berechnet die Partialsummenfolge einer Zahl\n"); | |
| System.out.print("Zahl = "); |
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
| file = File.open('links.txt', 'rb') | |
| contents = file.read | |
| links = {} | |
| contents.scan(/(http.*); (\d{1,2}.\d{1,2}.\d{4})/).each do |pattern| | |
| links[pattern[0]] = pattern[1] | |
| end | |
| links.sort.each do |k, v| |
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 mmc(){eval "osascript -e 'tell application \"MultiMarkdown Composer\" to open \"$PWD/$1\"'"} |
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
| [Wed Oct 19 13:17:43 2011][002921][EUCAINFO ] doAttachVolume() invoked (id=i-3B34084E vol=vol-B692093E remote=//,192.168.2.21,iqn.2009-06.com.eucalyptus.cluster1:store2,PcH8fhzukhw8xEfE6gFcVQtF9VCg5IMJQ0F/Er4oS4R3JXUiSTUrk7vNMWdlUOPTeOZh49BIQlQx7p/mlYfBLj1u1BibSLG2diGYwJ23g2SaBePclNxYswcaSYbhR34KG8aTDEdElRgnhBbxxLnLOSqc2Seq7StPQlqc+7xy9tr8SjihE4cF3feMnNPa5oHEvy1aV/LRyowlhtSBZ1P9QRtUbdqK6Ga61v1xhPQdtVjjquTnh9nrkHmbgPnHTGGNWqrWOqeuvK6Yt6rWcW/YxtFc/dDXK/TYGq5SQgl5MoEIDaFnno/MPCa2fAvVQAi+jZjWn+E0U75GWeFFmbrAcQ== local=/dev/vda) | |
| [Wed Oct 19 13:17:43 2011][002921][EUCAINFO ] connect_iscsi_target invoked (dev_string=//,192.168.2.21,iqn.2009-06.com.eucalyptus.cluster1:store2,PcH8fhzukhw8xEfE6gFcVQtF9VCg5IMJQ0F/Er4oS4R3JXUiSTUrk7vNMWdlUOPTeOZh49BIQlQx7p/mlYfBLj1u1BibSLG2diGYwJ23g2SaBePclNxYswcaSYbhR34KG8aTDEdElRgnhBbxxLnLOSqc2Seq7StPQlqc+7xy9tr8SjihE4cF3feMnNPa5oHEvy1aV/LRyowlhtSBZ1P9QRtUbdqK6Ga61v1xhPQdtVjjquTnh9nrkHmbgPnHTGGNWqrWOqeuvK6Yt6rWcW/YxtFc/dDXK/TYGq5SQgl5MoEIDaFnno/MPCa2fAvVQAi+jZjWn+E0U75GWeFFmbrAcQ==) |