Skip to content

Instantly share code, notes, and snippets.

View glsee's full-sized avatar

Kaiden / GL glsee

View GitHub Profile
@glsee
glsee / designer.html
Created June 28, 2014 11:25
designer
<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 / dabblet.css
Created April 13, 2012 22:22
MathQuill \vec
/**
* MathQuill \vec
*/
body {
min-height: 100%;
font-size: 100%;
}
.harpoon {
@glsee
glsee / dabblet.css
Created April 14, 2012 20:57
MathQuill - \sum
/**
* MathQuill - \sum
*/
p {
font-size:300%;
}
.bigsymbol {
position:relative;
text-align: center;
@glsee
glsee / dabblet.css
Created April 15, 2012 08:19
MathQuill - Top Bottom Script
/**
* MathQuill - Top Bottom Script
*/
body {
}
.block {
display: inline-block;
}
@glsee
glsee / dabblet.css
Created April 15, 2012 08:20
MathQuill \hat
/**
* MathQuill \hat
*/
body {
min-height: 100%;
font-size: 100%;
}
.hat {
@glsee
glsee / gist:2717532
Created May 17, 2012 08:57
Smallest number divisible by a series of continuous whole numbers starting from 1
<?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 / app.php
Created November 20, 2012 01:08
Sample Silex app that has routing problem
// myapp/app/app.php
// ...
// route definitions
$app->mount('/myapp/subscribers', include 'controller/subscriber.php');
// later I tried these:

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:

@glsee
glsee / guide.md
Last active March 7, 2018 08:37
Setting Up Docker Quickstart Terminal on Jetbrains IDE

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
@glsee
glsee / bump_version.sh
Last active April 2, 2018 08:15
A shell script to bump the version of a code repository. I've forgotten when I got this.
#!/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"