npm install babel-loader imports-loader webpack --save- Create
webpack.config.js - Move
index.ios.jstosrc/index.ios.jsx webpack --watch
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> | |
| #include <algorithm> | |
| using namespace std; | |
| // 通用结构 | |
| template <class T, int N> | |
| struct StructDefault { | |
| T a[N]; | |
| }; |
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> | |
| extern int(a),(b); | |
| typedef int(I); | |
| struct A{ | |
| int(a); | |
| }; | |
| struct B:A{ | |
| (B)(B(())):A{A{{}}}{}; | |
| }; | |
| int(main)(int(argc),char**argv){ |
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
| #!/bin/python3 | |
| from random import choice | |
| from os import system | |
| from readchar import readchar, readkey | |
| from colorama import init | |
| from termcolor import colored | |
| from math import log2 | |
| N = 4 | |
| SEED = [2] * 9 + [4] |
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
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| var reactNativeExternalsPromise = (function () { | |
| var reactNativeRoot = path.dirname(require.resolve('react-native/package')); | |
| var blacklist = require('react-native/packager/blacklist'); | |
| var ReactPackager = require('react-native/packager/react-packager'); | |
| const rnEntryPoint = require.resolve('react-native'); | |
| return ReactPackager.getDependencies({ |
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 bash | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: $0 zip-file-to-fix" | |
| exit | |
| fi | |
| log() { | |
| printf "\e[1;31m[%s]\e[0m\t%s\n" "$1" "$2" | |
| } |
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> | |
| #include <iomanip> | |
| #include "date.h" | |
| using namespace std; | |
| using namespace date; | |
| using namespace std::chrono; | |
| int main(int argc, char *argv[]) |
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 bash | |
| SCRIPTPATH=`dirname "${BASH_SOURCE[0]}"` | |
| cd "$SCRIPTPATH" | |
| PYTHON=python | |
| if hash python2 > /dev/null 2>&1; then | |
| PYTHON=python2 | |
| fi |
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 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import os | |
| import requests | |
| from path import Path | |
| from sh import git | |
| user = 'your username' |
NewerOlder