Skip to content

Instantly share code, notes, and snippets.

Avatar

Kaiden / GL glsee

View GitHub Profile
@glsee
glsee / bump_version.sh
Last active Apr 2, 2018
A shell script to bump the version of a code repository. I've forgotten when I got this.
View bump_version.sh
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"
@glsee
glsee / guide.md
Last active Mar 7, 2018
Setting Up Docker Quickstart Terminal on Jetbrains IDE
View guide.md

Setting Up Docker Quickstart Terminal on Jetbrains IDE

By default, all Jetbrains IDE on Windows uses Windows Command Prompt in its terminal. For Docker Toolbox users, it is probably more intuitive to use the Docker Quickstart Terminal (which is essentially Windows Git bash prompt with initialized with a script from Docker Toolbox.

To do that, follow the instructions below:

  1. Go to Settings in your Jetbrains IDE.
  2. From the navigation menu on the left, go to Tools and then Terminal settings.
  3. Under Application Settings, change the shell path to "C:\Program Files\Git\bin\bash.exe" --cd="C:\Program Files\Docker Toolbox" --login -i "C:\Program Files\Docker Toolbox\start.sh"
  4. Click "OK" button to confirm your changes.
  5. Enjoy your new terminal in the IDE. :D
View keybase.md

Keybase proof

I hereby claim:

  • I am glsee on github.
  • I am glsee (https://keybase.io/glsee) on keybase.
  • I have a public key ASBQkSct-nO_BUWqS1q4uSCOGU3el8YaenXKuuVTPb-gYAo

To claim this, I am signing this object:

View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@glsee
glsee / app.php
Created Nov 20, 2012
Sample Silex app that has routing problem
View app.php
// myapp/app/app.php
// ...
// route definitions
$app->mount('/myapp/subscribers', include 'controller/subscriber.php');
// later I tried these:
@glsee
glsee / gist:2717532
Created May 17, 2012
Smallest number divisible by a series of continuous whole numbers starting from 1
View gist:2717532
<?php
/* Greatest Common Divisor */
function gcd($x, $y) {
if ($y === 0) return $x;
return abs(gcd($y, $x % $y));
}
/* Least Common Multiples */
function lcm($x, $y) {
@glsee
glsee / dabblet.css
Created Apr 15, 2012
MathQuill \hat
View dabblet.css
/**
* MathQuill \hat
*/
body {
min-height: 100%;
font-size: 100%;
}
.hat {
@glsee
glsee / dabblet.css
Created Apr 15, 2012
MathQuill - Top Bottom Script
View dabblet.css
/**
* MathQuill - Top Bottom Script
*/
body {
}
.block {
display: inline-block;
}
@glsee
glsee / dabblet.css
Created Apr 14, 2012
MathQuill - \sum
View dabblet.css
/**
* MathQuill - \sum
*/
p {
font-size:300%;
}
.bigsymbol {
position:relative;
text-align: center;
@glsee
glsee / dabblet.css
Created Apr 13, 2012
MathQuill \vec
View dabblet.css
/**
* MathQuill \vec
*/
body {
min-height: 100%;
font-size: 100%;
}
.harpoon {