Skip to content

Instantly share code, notes, and snippets.

View made-by-chris's full-sized avatar
🏁

Christopher Shelley made-by-chris

🏁
View GitHub Profile
@avafloww
avafloww / PhpJava.java
Last active June 13, 2024 07:36
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@molivier
molivier / gist:271bba5d67de1583a8e3
Last active June 28, 2024 22:38
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
@fkling
fkling / App.js
Last active February 1, 2018 03:43
Bootstrap files for React + JSX with browserify and gulp.js
"use strict";
// Use
// var React = require('./react');
// instead if you are loading React externally, via a <script> element
var React = require('react');
var App = React.createClass({
render: function() {
return <h3>Hello World!</h3>;