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
| // quando clicco su enterfullscreen: | |
| // vai in fullscreen | |
| // mostra pulsante exitfullscreen | |
| // nascondi header e footer | |
| // quando clicco su exitfullscreen: | |
| // esci da fullscreen | |
| // mostra pulsante enterfullscreen | |
| // mostra header e footer |
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
| // quando clicco su enterfullscreen: | |
| // vai in fullscreen | |
| // all'entrata in fullscreen: | |
| // mostra pulsante exitfullscreen | |
| // nascondi header e footer | |
| // quando clicco su exitfullscreen: | |
| // esci da fullscreen |
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
| .centered { | |
| position: relative; | |
| float: left; | |
| } | |
| .centered.outer { | |
| text-align: justify; | |
| right: 50%; | |
| } |
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
| $('.foo').cycle({ | |
| fx: 'scrollHorz' | |
| }); |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <style> | |
| .content { |
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 applyDebug(obj) { | |
| for (var f in obj) { | |
| if (obj.hasOwnProperty(f) && typeof obj[f] === 'function') { | |
| console.log(obj[f].toString()); | |
| origFunc = obj[f]; | |
| obj[f] = function () { | |
| console.debug("called at " + new Date()); | |
| return origFunc.apply(this, arguments); |
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
| cd ~/.config/sublime-text-3/Packages/Theme\ -\ Default/ | |
| wget https://gist.github.com/olivierlacan/1857652/raw/143290aa0a83cff3c6fe384986b8aae1540cd710/Default.sublime-theme |
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
| cd ~/.config/sublime-text-3/Packages | |
| git clone https://github.com/miksago/jade-tmbundle.git Jade |
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 static java.lang.System.out; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Euler4 | |
| { | |
| static final int MIN = 100; | |
| static final int MAX = 999; | |
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
| max = 0 | |
| 100.upto(999) { |a| | |
| a.upto(999) { |b| | |
| prod = a * b | |
| max = [max, prod].max if prod.to_s == prod.to_s.reverse | |
| } | |
| } | |
| puts "Maximum palindrome is #{ max }." |