Skip to content

Instantly share code, notes, and snippets.

@booox
booox / li_test.html.erb
Created November 7, 2017 02:43
About Rails Modal
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Another Gist

Product management process with Trello

A Trello board is a software equivalent of a physical wall with columns of sticky notes. In Trello terminology, the wall is called a "board." The columns are called "lists." The sticky notes in columns are called "cards."

No two products are the same, so flexibility in the product management process is important. Trello responds well to changing the structure of the process "on the fly."

@booox
booox / knowledges.js.coffee
Created February 21, 2017 00:35 — forked from jorgegit/knowledges.js.coffee
View of the dynamic drop down example with Rails, Coffeescript and jQuery
jQuery ->
$('#knowledge_parent_subject').change ->
selected_id = $('#knowledge_parent_subject option:selected').val()
$.get "/subjects/#{selected_id}/subcategories"
@booox
booox / Read the Docs Note.html
Created December 12, 2015 23:00
Read the Docs Note
https://read-the-docs.readthedocs.org/en/latest/getting_started.html
# Getting Started
## Write Your Docs
### In Markdown (Not thinking temp)
### In reStructuredText
#### install Sphinx
$ pip install sphinx sphinx-autobuild
#### Create a directory inside your project to hold your docs:
#! /usr/bin/env python3
'''pyCookieCheat.py
20140518 v 2.0: Now works with Chrome's new encrypted cookies
Use your browser's cookies to make grabbing data from login-protected sites easier.
Intended for use with Python Requests http://python-requests.org
Accepts a URL from which it tries to extract a domain. If you want to force the domain,
just send it the domain you'd like to use instead.
@booox
booox / Fibonacci_1
Last active August 29, 2015 13:57
Fibonacci_1
# Fibonacci
def fab_1(n):
n1 = 1
n2 = 1
n3 = 1
if n < 1:
print ('Wrong input,try again!')
return -1
import sys
import re
import string
import urllib
filename = "".join(sys.argv[1:])
if filename.startswith("http"):
htmlFile = urllib.urlopen(filename)
else:
htmlFile = open(filename, 'r')