Skip to content

Instantly share code, notes, and snippets.

View yuikns's full-sized avatar

Yu yuikns

View GitHub Profile
View index-with-redis.php
Author: Jim Westergren & Jeedo Aquino
File: index-with-redis.php
Updated: 2012-10-25
This is a redis caching system for wordpress.
see more here:
View bootstrap_3_full_class_list.html
Here are all the classes from Bootstrap 3 (version 3.1.1).
U may also see :
Method of extraction:
1. Download Bootstrap 3 and rename bootstrap.css as "bootstrap.html"
2. Add the following 24 lines of code to the very bottom of the bootstrap.html file:
<script src=""></script>
yuikns / IP17MON.cpp
Last active August 29, 2015 14:18 — forked from ZRJ/IP17MON.cpp
View IP17MON.cpp
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#include <fstream>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
yuikns / CMakeLists.txt
Created May 27, 2016 04:02 — forked from eruffaldi/CMakeLists.txt
A tiny example of CUDA + OpenGL interop with write-only surfaces and CUDA kernels. Uses GLFW+GLAD.
View CMakeLists.txt
#sudo pip install --upgrade git+
#python --api gl=3.3 --generator=c --out-path=GL
cuda_add_executable(main main.c assert_cuda.c interop.c GL/src/glad.c
target_link_libraries(main ${GLFW_LIBRARY})
yuikns / start-stop-daemon-template
Created September 25, 2016 23:21 — forked from bcap/start-stop-daemon-template
Template file for creating linux services out of executables using the start-stop-daemon
View start-stop-daemon-template
# Provides: <service name>
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <service description>
yuikns /
Created November 16, 2018 08:42 — forked from Brainiarc7/
Build Tensorflow from source, for better performance on Ubuntu.

Building Tensorflow from source on Ubuntu 16.04LTS for maximum performance:

TensorFlow is now distributed under an Apache v2 open source license on GitHub.

On Ubuntu 16.04LTS+:

Step 1. Install NVIDIA CUDA:

To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit as shown:

yuikns / assert_cuda.c
Created November 5, 2016 16:19 — forked from allanmac/assert_cuda.c
A tiny example of CUDA + OpenGL interop with write-only surfaces and CUDA kernels. Uses GLFW+GLAD.
View assert_cuda.c
#include <stdlib.h>
#include <stdio.h>