Couldn't find the text of this for a while...
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(d) { | |
| var dl = d.createElement('a'); | |
| dl.innerText = 'Download MP3'; | |
| dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
| dl.download = d.querySelector('em').innerText+".mp3"; | |
| d.querySelector('.primary').appendChild(dl); | |
| dl.style.marginLeft = '10px'; | |
| dl.style.color = 'red'; | |
| dl.style.fontWeight = 700; | |
| })(document); |
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
| { | |
| "ANDROID_VERSION": 1.5, | |
| "APP_VERSION_CODE": 8, | |
| "APP_VERSION_NAME": 1.3, | |
| "AVAILABLE_MEM_SIZE": 181972992, | |
| "BRAND": "generic", | |
| "BUILD": { | |
| "BOARD": "unknown", | |
| "BRAND": "generic", | |
| "DEVICE": "generic", |
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
| public boolean isBlowing() | |
| { | |
| boolean recorder=true; | |
| int minSize = AudioRecord.getMinBufferSize(8000,AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); | |
| AudioRecord ar = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000,AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT,minSize); | |
| short[] buffer = new short[minSize]; |
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
| YUI.add('logismo', function(Y) { | |
| /** | |
| * Logismo | |
| */ | |
| var Logismo, | |
| LOGISMO = 'logismo', | |
| EVENTS_RESOURCE_PATH = 'eventsResourcePath', |
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://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script> | |
| </head> | |
| <body class="yui3-skin-sam"> | |
| <div id="app"></div> | |
| <script> |
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
| float temp; | |
| int tempPin = 0; | |
| int buzzer=8; //Connect the buzz positive Pin to Digital Pin 8 | |
| void setup() | |
| { | |
| pinMode(buzzer,OUTPUT); //Set Pin Mode as output | |
| Serial.begin(9600); | |
| beep(500); | |
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
| int photoRPin = 0; | |
| int minLight; | |
| int maxLight; | |
| int lightLevel; | |
| int adjustedLightLevel; | |
| void setup(){ | |
| //Setup the starting light level limits | |
| lightLevel=analogRead(photoRPin); |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" > | |
| <TextView | |
| android:id="@+id/search_item" | |
| android:layout_width="fill_parent" | |
| android:layout_height="wrap_content" | |
| android:padding="10dp" |
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
| long start = System.nanoTime(); | |
| // do work..... | |
| long time = System.nanoTime() - start; | |
| double timeInSeconds = time/1e9; |
OlderNewer