Instantly share code, notes, and snippets.

View curl_php.bash
enabled in php.ini
sudo apt-get install php7.0-curl
sudo /etc/init.d/apache2 restart
View exfat install
sudo apt-get install exfat-fuse exfat-utils
View gcloudAppDeploy.bash
dev_appserver.py app.yaml
gcloud app deploy
View find.bash
find . -name "*.cpp" -ctime -1
View perm.rb
@n = 3
@stack = [0]*(@n)
def valid(level)
for i in 1..level-1
if @stack[i] == @stack[level]
View iteratorCombSort.cpp
#include <bits/stdc++.h>
#include <algorithm>
#define FIN "algsort.in"
#define FOUT "algsort.out"
#define b 1000000
using namespace std;
typedef vector<int>::iterator I;
typedef void (*fnPtr)(vector<int>, I, I);
View combosort.cpp
include <bits/stdc++.h>
#define FIN "algsort.in"
#define FOUT "algsort.out"
#define L 1000000
using namespace std;
struct IO {
char *buff, *p, *s;
View parallel.hs
ghc file.hs --make -threaded -rtsopts
View javafx
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
public class HelloWorld extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
Label label = new Label("Hello World");
View writeInt.java
import java.io.*;
class WriteInts
{
public static void main ( String[] args )
{
String fileName = "intData.dat" ;
int value0 = 0, value1 = 1, value255 = 255, valueM1 = -1;