I hereby claim:
- I am mimming on github.
- I am mimming (https://keybase.io/mimming) on keybase.
- I have a public key ASAuA5qMjyOqQ04I2r128Vy39o6ifHH-pgHFOSAXXWQhZAo
To claim this, I am signing this object:
| var ref = new Firebase("https://<your-firebase>.firebaseio.com/path-to-your-node"); | |
| ref.on("child_added", function(snap) { | |
| var data = snap.val(); | |
| data.phonenumber = data.contact; | |
| delete data.contact; | |
| ref.child(snap.name()).set(data, function(error) { | |
| if( error && typeof(console) !== 'undefined' && console.error ) { console.error(error); } | |
| }); | |
| }); |
| pom.xml | |
| src/main/java/com/firebase/repro/Main.java |
| <html> | |
| <head> | |
| <script src="https://cdn.firebase.com/js/client/2.1.2/firebase.js"></script> | |
| <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script> | |
| <script> | |
| $( document ).ready(function() { | |
| var myFirebaseRef = new Firebase("https://test-firebase-please-ignore.firebaseio.com/"); | |
| $("#authFacebook").click(function(event) { | |
| myFirebaseRef.authWithOAuthRedirect("facebook", function(error) { |
| $foo = array(-1, NULL, 0, NULL, 0, NULL, -1); | |
| echo "unsorted\n"; | |
| print_r($foo); | |
| sort($foo); | |
| echo "sorted once\n"; | |
| print_r($foo); |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| max-width: 800px; | |
| } | |
| ul#chat-buffer { | |
| list-style: none; | |
| padding-left: 0; | |
| } |
| import unittest | |
| class Calculator(): | |
| def add(x, y): | |
| return x + y | |
| class TestCaculator(unittest.TestCase): | |
| def test_add(self): | |
| self.assertEqual(Calculator.add(4, 4), 8) |
I hereby claim:
To claim this, I am signing this object: