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 copyFbRecord(oldRef, newRef) { | |
| oldRef.once('value', function(snap) { | |
| newRef.set( snap.value(), function(error) { | |
| if( error && typeof(console) !== 'undefined' && console.error ) { console.error(error); } | |
| }); | |
| }); | |
| } |
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
| #!/usr/bin/env python | |
| """ | |
| Modified from | |
| http://macscripter.net/viewtopic.php?id=26675 | |
| http://apple.stackexchange.com/questions/90040/look-up-a-word-in-dictionary-app-in-terminal | |
| HowTo |
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
| hi psych0der | |
| psych0der | |
| hey cadillac_ | |
| psych0der | |
| i am bit cofused about accessing info about user object which is created in request | |
| cadillac_ | |
| the social info? | |
| psych0der | |
| yes | |
| psych0der |
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 level,sol; //level of recusrsion | |
| printf("Enter the level\n"); | |
| scanf("%d",&level); | |
| sol = solve(1); | |
| int solve(int n) | |
| { | |
| int temp=1; | |
| for(int i=1;i<n+1;i++) |
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
| #include <stdio.h> | |
| #include <math.h> | |
| #define precision 6 //precision for decimal digits | |
| int main(int argc, char const *argv[]) | |
| { | |
| float f,ff; |
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 expo(int a, int b){ | |
| int result = 1; | |
| while (b) | |
| { | |
| if (b%2==1) | |
| { | |
| result *= a; | |
| } | |
| b /= 2; |
NewerOlder