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 org.example | |
| class Book { | |
| String author | |
| static namedQueries = { | |
| withAuthor { author -> | |
| eq 'author', author | |
| } | |
| } |
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 org.example | |
| class AccountInfo { | |
| Integer type | |
| String accountId | |
| static mapping = { | |
| version false | |
| } |
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 getBooyan() { | |
| return $('body').data('booyan') | |
| } | |
| $(function() { | |
| // Set a data attribute on an element. This can be done in the html as well, but is simplified in js for this example. | |
| // e.g. <body data-booyan="magic">...</body> | |
| $('body').attr('data-booyan', 'magic'); | |
| // Retrieve as data | |
| var booyan = getBooyan(); // booyan == 'magic' |
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 as.adamsmith.etherealdialpad.dsp; | |
| import android.media.AudioFormat; | |
| import android.media.AudioManager; | |
| import android.media.AudioTrack; | |
| public class Dac extends UGen { | |
| private final float[] localBuffer; | |
| private boolean isClean; |