Skip to content

Instantly share code, notes, and snippets.

View matrix_terminal_python.py
""""Create "The Matrix" of binary numbers scrolling vertically in your terminal.
original code adapted from juancarlospaco:
- http://ubuntuforums.org/showpost.php?p=10306676
Inspired by the movie: The Matrix
- Corey Goldberg (2013)
Requires:
@stevehenderson
stevehenderson / Setup Pivot Table
Created May 15, 2013
VBA code to initialize a PivotTable
View Setup Pivot Table
'SetupPivot: The following subroutine sets up a pivot table
'
'
' author: steven.henderson@usma.edu
'
'I received assitance from the following site:
'
@rxaviers
rxaviers / gist:7360908
Last active Dec 1, 2020
Complete list of github markdown emoji markup
View gist:7360908

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@nvurgaft
nvurgaft / gist:8086853
Last active Nov 19, 2016
A simple HTTP/1.0 request client. This is a free software code, use fairly!
View gist:8086853
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
@anthonyeden
anthonyeden / Python WExpect
Created Jan 18, 2014
Python's PExpect for Microsoft Windows: WExpect
View Python WExpect
"""Pexpect is a Python module for spawning child applications and controlling
them automatically. Pexpect can be used for automating interactive applications
such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different servers. It
can be used for automated software testing. Pexpect is in the spirit of Don
Libes' Expect, but Pexpect is pure Python. Other Expect-like modules for Python
require TCL and Expect or require C extensions to be compiled. Pexpect does not
use C, Expect, or TCL extensions. It should work on any platform that supports
the standard Python pty module. The Pexpect interface focuses on ease of use so
that simple tasks are easy.
@itbj
itbj / t2.php
Created Jan 26, 2014
My PHP application to read file ,then put on the Web Browser. (2014/01/26)
View t2.php
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body>
<?php
echo "My Cloud App!<br>我的云应用。<br>";
echo $showtime=date("Y-m-d H:i:s");
echo "<hr>";
$filename="yjm.txt";
if (file_exists($filename))
@fleeto
fleeto / gist:9912971
Last active Apr 16, 2020
Drupal黑话入门
View gist:9912971

Drupal可能会让初学者深感畏惧。对大多数人来说,第一只拦路虎就是Drupal世界中一系列的术语,这些术语有的很生僻,有的在不同语境中有着不同的含义。要尽快的融入Drupal社区,同其他的Drupal爱好者沟通,最好能尽快的理解和使用Drupal的这些词汇。这里列出一些常用的Drupal术语。

Block - (这里保持原文,因常用的汉语翻译区块很容易和下句话中的区域混淆——译者注) Block用于将一小片内容摆放到页面的指定区域(例如左侧边栏,头部或底部等),例如一个包含了公司联系信息的Block可以放置到所有页面底部。或者将一个包含了相关商品的Block展示在一个目录下所有商品的详情页中。

Core - 也就是核心,指的是在Drupal.org下载的标准Drupal包中包含的缺省功能。这些功能包含Menu(Menu实际上和我们软件行业常说的菜单有很大区别,指的不是菜单,而是Drupal的Url系统——译者注)管理,用户管理,系统管理,设计和布局,以及分类系统等等。

Contrib - 是Drupal社区成员将一些新增的或变更的功能,以主题和模块的形式进行发布。这些模块和主题可以从 https://drupal.org/download 进行下载。

d.o - dropal.org的简称。发音为dee dot oh。

View index.html
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d56790.47490202523!2d78.042155!3d27.175014999999924!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39747121d702ff6d%3A0xdd2ae4803f767dde!2sTaj+Mahal!5e0!3m2!1sen!2s!4v1398864446719" width="800" height="600" frameborder="0" style="border:0"></iframe>
@yuuichi-fujioka
yuuichi-fujioka / install_start_stop_daemon.sh
Created Jun 7, 2014
install start-stop-daemon to centos, fedora, redhat.
View install_start_stop_daemon.sh
#!/bin/bash
cd /usr/local/src
wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
cd apps/sys-utils/start-stop-daemon-IR1_9_18-2
gcc start-stop-daemon.c -o start-stop-daemon
cp start-stop-daemon /usr/sbin/
@shello
shello / randomEmoji.py
Last active Nov 11, 2020
Random Emoji! (for Python 3)
View randomEmoji.py
#!/usr/bin/env python3
from itertools import accumulate
from bisect import bisect
from random import randrange
from unicodedata import name as unicode_name
# Set the unicode version.
# Your system may not support Unicode 7.0 charecters just yet! So hipster.
UNICODE_VERSION = 6
You can’t perform that action at this time.