#Summit Awesome tooltip fix
##Before
cl.ly/image/1Y1204260X2i
##After
cl.ly/image/0v0V0B3M2u2H
| #Set the directory index to index.php | |
| DirectoryIndex index.php | |
| #Set the timezone to GMT/UTC | |
| SetEnv TZ UTC | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / |
| <?php | |
| // in this example we will use a remote file | |
| $file = 'https://raw.github.com/recurser/exif-orientation-examples/master/Landscape_6.jpg'; | |
| // adjust orientation and save a local copy (or overrite the origional) | |
| // AdjustImgOrientation::adjust($file, TRUE); | |
| // adjust orientation and display the image | |
| AdjustImgOrientation::adjust($file, FALSE); |
| <html> | |
| <head> | |
| <title>djekl Achievements</title> | |
| <style type="text/css"> | |
| body { | |
| text-align: center; | |
| } | |
| .achievement { |
| function xml2json($url) | |
| { | |
| $fileContents= file_get_contents($url); | |
| $fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents); | |
| $fileContents = trim(str_replace('"', "'", $fileContents)); | |
| $simpleXml = simplexml_load_string($fileContents); | |
| $json = json_encode($simpleXml); | |
| return $json; | |
| } |
| alias update_all_git_repos='find ~/projects -name .git -type d -exec sh -c "cd {} && cd .. && pwd && git pull --all --recurse-submodules && echo '\'''\''" \;' |
| $aCounty = array( | |
| "England" => array( | |
| "Avon", | |
| "Bedfordshire", | |
| "Berkshire", | |
| "Borders", | |
| "Bristol", | |
| "Buckinghamshire", | |
| "Cambridgeshire", | |
| "Channel Islands", |
| { | |
| "auto_complete": true, | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_delay": 50, | |
| "auto_complete_selector": "source - comment", | |
| "auto_complete_size_limit": 4194304, | |
| "auto_complete_triggers": | |
| [ | |
| { | |
| "characters": "<", |
| import sublime, sublime_plugin | |
| # class ExampleCommand(sublime_plugin.TextCommand): | |
| # def run(self, edit): | |
| # self.view.insert(edit, 0, "Hello, World!") | |
| class ConvertTabsToSpaces(sublime_plugin.EventListener): | |
| def on_pre_save(self, view): | |
| edit = view.begin_edit() | |
| view.run_command('expand_tabs', {"set_translate_tabs": True}) |
| <?php | |
| /** | |
| * private uk2usa() | |
| * @param string $timestamp UK Date Format (d/m/Y) | |
| * @return string American Date Format (Y-m-d) | |
| */ | |
| private function uk2usa($timestamp = FALSE) | |
| { | |
| if( ! $timestamp) |
#Summit Awesome tooltip fix
##Before
cl.ly/image/1Y1204260X2i
##After
cl.ly/image/0v0V0B3M2u2H