View HTML5 Skeleton template.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title></title>
<link href="style.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
View writeTextOnImage.php
<?php
// URL of the font to be downloaded
$fontURL = "http://www.font-police.com/classique/sans-serif/arial.ttf";
// 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>'";
exit();
}
View batch.json
{"batch":"[{\"method\":\"post\",\"relative_url\":\"act_10158095527450599/adcreatives\",\"body\":\"name=atv206-image1-&object_story_spec=%7B%22link_data%22%3A%7B%22call_to_action%22%3A%7B%22type%22%3A%22SHOP_NOW%22%2C%22value%22%3A%7B%22link%22%3A%22https%3A%2F%2Fwww.cargurus.com%2FCars%2Finventorylisting%2FviewDetailsFilterViewInventoryListing.action%3Fax8324%3D26624540%26cgagid%3D8671777%26cgcid%3D5497%26px8324%3Dp5%26sourceContext%3Dprospecting%26utm_campaign%3Dprospecting%26utm_medium%3Dcpc%26utm_source%3Dfacebook%22%7D%7D%2C%22message%22%3A%22Car+shop+with+confidence.+CarGurus+helps+you+find+the+best+deals+from+top-rated+local+dealers%21%22%2C%22link%22%3A%22https%3A%2F%2Fwww.cargurus.com%2FCars%2Finventorylisting%2FviewDetailsFilterViewInventoryListing.action%3Fax8324%3D26624540%26cgagid%3D8671777%26cgcid%3D5497%26px8324%3Dp5%26sourceContext%3Dprospecting%26utm_campaign%3Dprospecting%26utm_medium%3Dcpc%26utm_source%3Dfacebook%22%2C%22name%22%3A%22Let+Us+Help+You+Find+the+Best+Deal%22%2C%22description%22%
View Mandelbulb
//---Functions---
/*
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
<?php
$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
<html>
<body>
<div id="header" class="cabecera">
<div id="banner-top" class="banner">
contenido del banner superior, normalmente una imagen o slideshow.
</div>
<div id="nav" class="menu">
Contenido del menú, normalmente una lista no ordenada.
</div>
</div>
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
##排除文件的寫法
bin
include
lib
pip-selfcheck.json
share
*.pyc