This file contains 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 <stdlib.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) | |
{ | |
char *str1, *str2, *token, *subtoken; | |
char *saveptr1, *saveptr2; | |
int j; | |
This file contains 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
<div class="row"> | |
<div class="col-sm-12 contact-form wow fadeInUp"> | |
<form role="form" action="assets/contact.php" method="post"> | |
<div class="form-group"> | |
<label class="sr-only" for="contact-email">Email</label> | |
<input type="text" name="email" placeholder="Email..." class="contact-email form-control" id="contact-email"> | |
</div> | |
<div class="form-group"> | |
<label class="sr-only" for="contact-subject">Subject</label> |
This file contains 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<stdlib.h> | |
int main() | |
{ | |
unsigned char; | |
FILE *fp; | |
fp=fopen("trial", "r"); | |
if(!fp) | |
{ |
This file contains 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> | |
void setint(int*, int); | |
int main() { | |
int a; | |
seti t(& 10) tint(&a, 10); | |
printf("%dn", a); | |
int* b; |
This file contains 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
Request.remoteMethod( | |
'getNumPresentStudents', | |
{ | |
description: 'Get all givers in the specified DiningHall.', | |
accessType: 'READ', | |
accepts: [ | |
{arg: 'diningHallId', type: 'string', required: true, description: 'The specified DiningHall.'} | |
], | |
http: {path: '/getNumPresentStudents', verb: 'get'}, | |
returns: {type: 'number', root: true} |
This file contains 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
commentEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() { | |
@Override | |
public void onFocusChange(View v, boolean hasFocus) { | |
if (hasFocus) { | |
// 200 is an arbitrary amount of time to let the keyboard show, and then | |
// we smooth scroll | |
recyclerView.postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
recyclerView.smoothScrollToPosition(adapter.getItemCount() - 1); |
This file contains 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
[ | |
{ | |
"dateCreated": "2015-08-16T20:34:10.682Z", | |
"expirationDate": "2015-08-16T21:09:10.667Z", | |
"note": "", | |
"canceled": false, | |
"expired": false, | |
"exchangedGiver": false, | |
"exchangedRequester": false, | |
"id": "55d0f3c27712c2ccd4a7af50", |
This file contains 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
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { | |
NSLog(@"didReceiveNotification"); | |
// Get application state for iOS4.x+ devices, otherwise assume active | |
UIApplicationState appState = UIApplicationStateActive; | |
if ([application respondsToSelector:@selector(applicationState)]) { | |
appState = application.applicationState; | |
} | |
if (appState == UIApplicationStateActive) { |
NewerOlder