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
| package main | |
| import ( | |
| crypto_rand "crypto/rand" | |
| "encoding/binary" | |
| "fmt" | |
| math_rand "math/rand" | |
| ) | |
| func main() { |
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
| const TestIntl = () => { | |
| const t = useFormatMessage() | |
| return ( | |
| <div> | |
| { t({ id: 'preferences' }) } | |
| </div> | |
| ) | |
| } | |
| const App = () => |
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
| # Certain URL | |
| <Location /<URL>> | |
| Order Deny,Allow | |
| Deny from all | |
| Allow from <IP> | |
| </Location> | |
| # Everything | |
| <Location /> | |
| Order Deny,Allow |
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
| <a href="{{ path(ezpublish.rootLocation) }}"> |
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
| {{ url('ez_legacy', {'module_uri': '/content/search'}) }} |
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
| [EditorLayout_mini_extended] | |
| Buttons[] | |
| Buttons[]=bold | |
| Buttons[]=italic | |
| Buttons[]=underline | |
| Buttons[]=| | |
| Buttons[]=sub | |
| Buttons[]=sup | |
| Buttons[]=| | |
| Buttons[]=undo |
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 | |
| class FacebookDebugger | |
| { | |
| /* | |
| * https://developers.facebook.com/docs/opengraph/using-objects | |
| * | |
| * Updating Objects | |
| * | |
| * When an action is published, or a Like button pointing to the object clicked, | |
| * Facebook will 'scrape' the HTML page of the object and read the meta tags. |
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
| // `limit` is in bytes | |
| jQuery.validator.addMethod('fileSizeLimit', function(value, element, limit) { | |
| return !element.files[0] || (element.files[0].size <= limit); | |
| }, 'File is too big'); | |
| jQuery('validatorElement').validate({ | |
| rules: { | |
| someImageField: { | |
| fileSizeLimit: 1000000 | |
| } |
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 | |
| /** | |
| * Turn a multi level associative array into a one level associative array. | |
| * The key path of each value will be a dot separated key string in the new | |
| * array. | |
| * | |
| * @example | |
| * [ | |
| * 'a' => [ |
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 | |
| /** | |
| * Reduce an array of one level associative arrays into | |
| * a one level associative array. | |
| * | |
| * @example | |
| * [ | |
| * ['id' => '14', 'name' => 'a', 'foo' => 'bar'], | |
| * ['id' => '25', 'name' => 'b', 'foo' => 'baz'], |
NewerOlder