View gist:cdd503793392281a8a0c
1 2 3 4 5 6 7 8 9 10
@media print {
html {
font-size: 100%;
margin: 0;
padding: 0;
}
body {
font-family: "Segoe UI Semilight","Segoe UI",sans-serif;
font-weight: 300;
font-size: 11.0pt;
View theme_drupal
1 2 3 4 5 6
/* Working with template suggestions */
https://www.drupal.org/node/1089656
 
/* Overview of theme files */
 
https://www.drupal.org/node/171194
View ToDoList
1
[] JavaScript 的浮点数精度问题
View gist:d6ea61d4c19ec8b4b41c
1 2
var query='insert into myuser (name, pass) values ("' + req.body.user + '", "' + req.body.password + '")';
var query_set = 'insert into myuser set name="'+req.body.user+ '", pass= "' +req.body.password + '"';
View Dockerfile
1 2 3 4 5 6 7 8 9 10
FROM centos:7
 
RUN yum install -y openssh-server openssh-clients sudo
RUN yum clean all
RUN sed -ri 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config
RUN sed -i "s/Defaults requiretty.*/#Defaults requiretty/g" /etc/sudoers
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
RUN ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
 
RUN useradd vagrant
View Anagrams
1 2 3 4 5 6 7 8 9 10
;;the general idea of the program is to sort the given word in alphabetical order,
;;and compare it to a word in the dictionary, which is also sorted in alphabetical order.
;;if the two words match, then the word in the dictionary is outputted, and then
;;the inputted word is continued being compared to the rest of the words in the dictionary
;;until all the anagrams are outputted.
 
;;less alphabetically
;;takes in a letter, char, and a list of strings, alos,
;;outputs all the letters less alphabetically
;;than the inputted letter as a list of strings
View main.js
1 2 3 4 5 6 7 8 9 10
function cleanUp() {
//
// Settings
//
// Enter # of days before messages are moved to trash
var days = 7;
 
// List of labels which you want to remove
var filters = [];
filters.push('label:notification-mailmagazine');
View pong.elm
1 2 3 4 5 6 7 8 9 10
-- See this document for more information on making Pong:
-- http://elm-lang.org/blog/Pong.elm
import Color (..)
import Graphics.Collage (..)
import Graphics.Element (..)
import Keyboard
import Signal
import Text
import Time (..)
import Window
Something went wrong with that request. Please try again.