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
//Find box | |
func Find(w http.ResponseWriter, r *http.Request) { | |
var result Box | |
id := bson.ObjectIdHex(mux.Vars(r)["id"]) | |
err := db.Boxes.FindId(id).One(&result) | |
if err != nil { | |
http.Error(w, err.Error(), http.StatusInternalServerError) |
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 <time.h> | |
#include <string.h> | |
#define N 10 | |
#define STRING_LENGTH 50 | |
struct Student | |
{ |
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 <time.h> | |
#include <string.h> | |
#define N 10 | |
#define STRING_LENGTH 50 | |
struct Student | |
{ |
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 <time.h> | |
#define N 10 | |
struct Node | |
{ | |
int Data; | |
struct Node *Next; |
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
export function withAuthContext<Props: Object>( | |
Component: ComponentType<Props> | |
): ComponentType<$Diff<Props, State>> { | |
return function AuthContextConsumerWrapper(props: Props) { | |
return ( | |
<AuthContextConsumer>{context => <Component {...context} {...props} />}</AuthContextConsumer> | |
); | |
}; | |
} |
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
export const CampaignCreator = graphql(gql` | |
mutation singleUpload($file: MyUpload!, $name: String) { | |
singleUpload(file: $file, name: $name) { | |
id | |
path | |
} | |
} | |
`)(({ mutate }) => ( | |
<input | |
type="file" |
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
export const CampaignCreator = withRouter( | |
injectIntl( | |
compose( | |
graphql(CREATE_CAMPAIGN, { name: "createCampaign" }), | |
graphql(UPDATE_CAMPAIGN_NAME, { name: "updateCampaignName" }), | |
graphql(UPDATE_CAMPAIGN_SOURCE, { name: "updateCampaignSource" }), | |
graphql(FINISH_CAMPAIGN, { name: "finishCampaign" }), | |
graphql(FILE_UPLOAD, { name: "singleUpload" }) | |
)(CampaignCreatorComponent) | |
) |
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
[ | |
{ | |
"key": "group_58b1b54102cc4", | |
"title": "Galeria", | |
"fields": [ | |
{ | |
"key": "field_5957c70ab2d5d", | |
"label": "Zdjęcia", | |
"name": "", | |
"type": "tab", |
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
Gdzies w komopnencie | |
<Icon iconType="brand" name="spotify" /> | |
Icon component: | |
function mappedTyped(i) { | |
return { | |
"brand": "fab" | |
}[i] |
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
let component = ReasonReact.statelessComponent("Icon"); | |
type iconType = | |
| Spotify; | |
let typeOfIcon = (t: iconType) => | |
switch (t) { | |
| Spotify => "fab fa-spotify" | |
}; |
OlderNewer