View HTML5 Skeleton template.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<link href="style.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
View writeTextOnImage.php
// URL of the font to be downloaded
$fontURL = "";
// Test if the filepath is in parameters and the file exists
if(empty($argv[1]) || !file_exists($argv[1])) {
echo "A valid Image path is required! The command syntax is 'php writeTextOnImage.php <image_filepath> '<string_to_write>'";
View batch.json
View Mandelbulb
r = sqrt(x*x + y*y + z*z )
theta = atan2(sqrt(x*x + y*y) , z)
phi = atan2(y,x)
newx = r^n * sin(theta*n) * cos(phi*n)
newy = r^n * sin(theta*n) * sin(phi*n)
View Solution
public class Solution {
public static void main(String[] args) throws Exception
String String = "one_two_three_four";
String = String.replace('_', ' ');
String[] listOfWords = String.split(" ");
for(int i = 0; i < listOfWords.length; i++){
String firstLetter = listOfWords[i].substring(0,1).toUpperCase();
String otherLetters = listOfWords[i].substring(1);
listOfWords[i] = firstLetter + otherLetters;
View .ideavimrc
source ~/.vimrc
set visualbell
set noerrorbells
set surround
set relativenumber
" disable mappings from .vimrc
inoremap <C-U> <C-U>
inoremap <CR> <CR>
View gist:a9fb855b1d68e826cf182916862f6e38
$get_file= file_get_contents('C://xampp//htdocs/Resources/data.txt');
//echo $get_file;
$_list = explode("\n", $get_file);
foreach ($_list as $key => $value) {
$_list_temp = explode(";", $value);
$_list_1[$_list_temp[0]] = $_list_temp[1];
$_list_2[$_list_temp[1]][] = $_list_temp[0];
View ejem-div-span.html
<div id="header" class="cabecera">
<div id="banner-top" class="banner">
contenido del banner superior, normalmente una imagen o slideshow.
<div id="nav" class="menu">
Contenido del menú, normalmente una lista no ordenada.
View products_controller.rb
lass ProductsController < ApplicationController
before_action :set_product, only: [:show, :edit, :update, :destroy]
respond_to :json, :html
# GET /products
# GET /products.json
def index
if params[:q]
search_term = params[:q]
@products = Product.where("name LIKE ?", "%#{search_term}%")
View Git --.gitignore(排除文件).txt