Skip to content

Instantly share code, notes, and snippets.

View rohmanhm's full-sized avatar
💪
yes

Rohman HM rohmanhm

💪
yes
View GitHub Profile
@rohmanhm
rohmanhm / gist:99da17e3929043ebc162d98adb7ff291
Created February 21, 2017 06:00 — forked from stuart11n/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@rohmanhm
rohmanhm / testGraphQLInputObjectType.js
Last active December 12, 2016 22:40
Test GraphQLInputObjectType
import { GraphQLInputObjectType, GraphQLString, GraphQLID } from 'graphql';
const Input = new GraphQLInputObjectType({
name: 'input',
description: 'Some input',
fields: {
id: {
type: GraphQLID
},
name: {
<?php
$num = 10;
$column = $num/2;
for ($i = 1 ; $i <= $column ; $i++) {
echo $i;
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . ($i + $column) .'<br/>';
}
?>