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
### Keybase proof | |
I hereby claim: | |
* I am szabcsee on github. | |
* I am szabcsee (https://keybase.io/szabcsee) on keybase. | |
* I have a public key whose fingerprint is 3091 9CB3 E3DC AF37 9A77 F640 1618 6DDB 2B3D 736A | |
To claim this, I am signing this object: |
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> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div data-closetext="Schließen" class="eb_colorbox_content eb_lightbox_form"><div class="eb_lightbox_title">Weltzeituhr - Einstellungen ändern</div><form action="https://ebase.dlh.de/ebase/home/de/_jcr_content/rightColumn1/worldclockgadget.ebase_userprefs_dialog.htx" method="POST"><div class="eb_worldclock_form_field"> | |
<h4>Städte wählen</h4> |
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 App = Ember.Application.create({ | |
LOG_TRANSITIONS_INTERNAL: true, | |
LOG_ACTIVE_GENERATION: true, | |
LOG_VIEW_LOOKUPS: true, | |
LOG_RESOLVER: true | |
}); | |
Ember.run.backburner.DEBUG = true; | |
Ember.ENV.RAISE_ON_DEPRECATION = true; | |
Ember.LOG_STACKTRACE_ON_DEPRECATION = true; |
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 echo exec('whoami'); ?> |
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> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>This is the sandbox playground of Sinatra</title> | |
</head> | |
<body> | |
<% [:notice, :warning, :error].each do |key| %> | |
<% if flash.include?(key) %> | |
<h2 class="alert <%= key %>"><%= flash[key] %></h2> |
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
require 'sinatra' | |
require 'aws/s3' | |
AWS::S3::Base.establish_connection!( | |
:access_key_id => 'key_id', | |
:secret_access_key => 'secret_access_key' | |
) | |
get '/upload' do | |
print 'Ez van a bucketekben:' |
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
require 'sinatra' | |
require 'json' | |
require 'csv' | |
# Serve data as JSON | |
get '/hi/:name' do | |
name = params[:name] | |
content_type :json | |
{ :message => name }.to_json | |
end |
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 if (is_single()){ | |
$facebookimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> | |
<meta property="og:image" content="<?php echo $facebookimage[0];?>"/> | |
<?php }; ?> |
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
get '/translate' do | |
doc = open(params[:url]) { |f| Hpricot (f) } | |
doc.search("//iframe").remove | |
doc.search("//script").remove | |
doc.search("//.headline_meta").remove | |
doc.search("//frameset").remove | |
article = (doc/".post").inner_html | |
google = GoogleFish.new('YOUR-API-KEY') | |
@result = google.translate( params[:language_from], params[:language_to], 'Good night, sleep tight') |