This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.android.opengl; | |
import android.graphics.Point; | |
public class Bezier { | |
private static final float AP = 0.5f; | |
private Point[] bPoints; | |
public Bezier(Point[] points) { | |
int n = points.length; | |
if (n < 3) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef UTIL_STRING_UTILS_HPP | |
#define UTIL_STRING_UTILS_HPP | |
// trim from start | |
static inline std::string &string_ltrim(std::string &s) { | |
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace)))); | |
return s; | |
} | |
// trim from end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* @author kabram. | |
* | |
*/ | |
public class CubicBezierCurve { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"os/exec" | |
"runtime" | |
) | |
type Worker struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET DTEXEC_PATH="C:\Program Files\Microsoft SQL Server\110\DTS\Binn\dtexec.exe" | |
%DTEXEC_PATH% /FILE batch_success.dtsx | |
IF %ERRORLEVEL% NEQ 0 GOTO STOP_JOB | |
%DTEXEC_PATH% /FILE batch_fail.dtsx | |
IF %ERRORLEVEL% NEQ 0 GOTO STOP_JOB | |
%DTEXEC_PATH% /FILE batch_success.dtsx | |
IF %ERRORLEVEL% NEQ 0 GOTO STOP_JOB |
NewerOlder