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
const { Response, Headers, Request } = require('whatwg-fetch'); | |
global.Response = Response; | |
global.Headers = Headers; | |
global.Request = Request; | |
global.console = { | |
log: () => {}, | |
warn: () => {}, | |
}; | |
global.fetch = require('jest-fetch-mock'); |
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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
Text, | |
StyleSheet, | |
ViewPropTypes, | |
} from 'react-native'; | |
const baseStyle = StyleSheet.create({ | |
fontFamily: 'Helvetica', // your font here |
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<iostream> | |
using namespace std; | |
struct nodo { | |
int info; | |
nodo* next; | |
nodo(int a=0, nodo* b=0) { | |
info=a; | |
next=b; | |
} |
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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import SearchBar from 'react-native-material-design-searchbar'; | |
const SearchBar = ({ onChangeText, onBackButtonPress, placeholder }) => ( | |
<SearchBar | |
onSearchChange={onChangeText} | |
placeholder={placeholder} | |
onBackPress={onBackButtonPress} | |
height={50} |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
func getIPWithMask() string { | |
addrs, err := net.InterfaceAddrs() |
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
mkdir -p node_modules/react-native/Libraries/Lists/ && \ | |
for file in 'FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils'; \ | |
do curl https://raw.githubusercontent.com/facebook/react-native/master/Libraries/Lists/${file}.js > node_modules/react-native/Libraries/Lists/${file}.js; \ | |
done |
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<iostream> | |
using namespace std; | |
struct nodo{int info; nodo* next; nodo(int a =0, nodo* b=0){info=a; next=b;}}; | |
struct doppioN{nodo*inizio,* fine; int lung; doppioN(nodo* a =0, nodo* b=0, int c=0){inizio=a; fine=b;lung=c;}}; | |
nodo* build(int n) | |
{ | |
if(n>0) |
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
https://github.com/facebook/react-native/commit/d8cc6e3c2b8c2dc25b6b32691779790c15de8d10 |
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 <vector> | |
#include <iostream> | |
class A { | |
private: | |
std::vector<int> data_; | |
public: | |
A() | |
{ |
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
#pragma once | |
#include <vector> | |
#include "GalloFile.h" | |
class Gallo { | |
private: | |
std::vector<GalloFile*> files; | |
public: | |
Gallo(const std::vector<GalloFile*> v) : |