This file contains 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
//Test detectWixSite.js to make sure changes don't break it | |
const chai = require('chai'), | |
chaihttp = require('chai-http'); | |
const should = chai.should(); | |
const querystring = require('querystring') | |
const key = require('./secrets') | |
const motionAiEndpoint = 'https://api.motion.ai/1.0/messageBot' |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://fb.me/react-with-addons-15.1.0.js"></script> | |
<script src="https://fb.me/react-dom-15.1.0.js"></script> |
This file contains 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
#!/bin/sh | |
cd ~/Pictures/Screenshots/Comigo | |
pageres ~/Documents/Projects/comigo/index.html --filename='<%= date %> - <%= time %> - <%= url %>' |
This file contains 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
<div class="triangle top"></div> | |
<div class="triangle base"></div> | |
<div class="line"></div> | |
<div class="pyramid left inline"></div> | |
<div class="pyramid right inline"></div> |
This file contains 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
#include "stdio.h" | |
//printer('x', 2) => xx | |
void printer(char toPrint, int timesToPrint){ | |
for(timesToPrint;timesToPrint > 0;timesToPrint--){ | |
printf(&toPrint); | |
} | |
} | |
void printSpace(int numSpaces){ |
This file contains 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
#include "stdio.h" | |
//printer('x', 2) => xx | |
void printer(char toPrint, int timesToPrint){ | |
for(timesToPrint;timesToPrint > 0;timesToPrint--){ | |
printf(&toPrint); | |
} | |
} | |
void printSpace(int numSpaces){ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Bubble sort in JS</title> | |
</head> | |
<body> | |
Bubble sort in JS | |
<script id="jsbin-javascript"> |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
// always copy the next line | |
int cmpfunc (const void * first, const void * second) { | |
// to get the value from the pointer, add the *(type*)name | |
return ( *(double*)first > *(double*)second ); | |
// the above says: make first the second if first is greater than second | |
// in other words, swap if true/greater than zero (true = 1, false = 0) | |
}; |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
// always copy the next line | |
int cmpfunc (const void * first, const void * second) { | |
// to get the value from the pointer, add the *(type*)name | |
return ( *(double*)first > *(double*)second ); | |
// the above says: make first the second if first is greater than second | |
// in other words, swap if true/greater than zero (true = 1, false = 0) | |
}; |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// always copy the next line | |
int cmpStringfunc (const void * first, const void * second) { | |
// to get the value from the pointer, add the *(type*)name | |
return (strlen(*(const char **) first) < strlen(*(const char **) second)); | |
// the above says: make first the second if first string length is less than second string length | |
// in other words, swap if true/greater than zero (true = 1, false = 0) |