As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
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
| # Virtual Hosts | |
| # | |
| # Required modules: mod_log_config | |
| # If you want to maintain multiple domains/hostnames on your | |
| # machine you can setup VirtualHost containers for them. Most configurations | |
| # use only name-based virtual hosts so the server doesn't need to worry about | |
| # IP addresses. This is indicated by the asterisks in the directives below. | |
| # | |
| # Please see the documentation at |
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
| $ cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../ | |
| $ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../ | |
| // URL: https://github.com/facebook/react-native/issues/21168#issuecomment-422431294 |
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
| /** | |
| * react-native-swiper | |
| * @author leecade<leecade@163.com> | |
| */ | |
| import React, { Component } from 'react' | |
| import PropTypes from 'prop-types' | |
| import { | |
| Text, | |
| View, | |
| ViewPropTypes, |
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
| <?php | |
| /** | |
| * In this example, we are autoloading classes within the namespace `Acme\ExampleProject`. The file `index.php` is the | |
| * entry point to our project; and we are using the `src` directory to store and organize our PHP class files. Our | |
| * autoloader is located in `autoload.php` | |
| * | |
| * The basic behavior is illustrated in the fact that PHP will autoload the file `src/mammals/human.php` whenever we | |
| * attempt to create a `new \Acme\ExampleProject\Mammals\Human` anywhere in our project's codebase. | |
| * | |
| * This diagram illustrates our project structure. Each file's contents can be found below. |
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 io = require('socket.io').listen(8000), | |
| nicknames = {}; | |
| io.sockets.on('connection', function (socket) { | |
| socket.on('user message', function (msg) { | |
| socket.broadcast.emit('user message', socket.nickname, msg); | |
| }); | |
| socket.on('nickname', function (nick, fn) { | |
| if (nicknames[nick]) { |
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
| class Hello { | |
| /** | |
| * Effects: if x==null throw NullPointerException else | |
| * return the number of elements in x that are either odd | |
| * or positive (or both). | |
| **/ | |
| public static void main(String[] args){ | |
| int[] x = {-3,-2,0,1,4}; | |
| System.out.println(addOrPos(x)); | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='UTF-8' /> | |
| <style type="text/css"> | |
| <!-- | |
| .chat_wrapper { | |
| width: 500px; | |
| margin-right: auto; | |
| margin-left: auto; |
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
| openssl req -newkey rsa:2048 -x509 -nodes -keyout server.key -new -out server.crt -subj /CN=belanjer.lo -reqexts SAN -extensions SAN -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:belanjer.lo')) -sha256 -days 3650 |
NewerOlder