A Pen by Anand Chowdhary on CodePen.
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
<?php | |
function hideEmail($email) { | |
$email = explode("@", $email); | |
$name = $email[0]; | |
if (strlen($name) > 3) { | |
$name = substr($name, 0, 2); | |
for ($i = 0; $i < strlen($email[0]) - 3; $i++) { | |
$name .= "*"; | |
} |
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 <CapacitiveSensor.h> | |
CapacitiveSensor c = CapacitiveSensor(13, 12); | |
float observedRightValue = 1750.0; | |
float observedLeftValue= 5000.0; | |
void setup() { | |
Serial.begin(9600); | |
} |
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
int potentiometerPin = A0; | |
int sensorPin1 = 3; | |
int sensorPin2 = 2; | |
long potentiometerValue = 0; | |
int sensor1Value = 0; | |
int sensor2Value = 0; | |
volatile long position; | |
void setup() { | |
// Set up internal pull up resistor for pin |
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
#define analogInPin 0 | |
const float Pi = 3.141592; | |
char sensorValue[480]; | |
char outputValue[480]; | |
int number,frameCurrent; | |
int pos0value, pos90value; | |
void setup() { | |
Serial.begin(38400); | |
for(int n=0;n<480;n++){ | |
outputValue[n]=(char)127*sin((float)2*Pi*n/48)+127; |
cd /etc/nginx/sites-available/
sudo nano example.com
Config looks like this:
I hereby claim:
- I am anandchowdhary on github.
- I am anandchowdhary (https://keybase.io/anandchowdhary) on keybase.
- I have a public key ASBN1gN2uMEdRGO-rEzaXmjNcUlZPat4y7prKw1vtpun-Qo
To claim this, I am signing this object:
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
TypeScript 15 hrs 35 mins █████████████▎░░░░░░░ 63.1% | |
JavaScript 3 hrs 44 mins ███▏░░░░░░░░░░░░░░░░░ 15.1% | |
Vue.js 1 hr 51 mins █▌░░░░░░░░░░░░░░░░░░░ 7.5% | |
JSON 52 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.5% | |
CSS 43 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.9% |
Using npx
with Node.js, you can run GitHub Gist scripts. This is a script to
For example, if you have a JSON file in a repo and its URL is https://raw.githubusercontent.com/TwenteMe/data/master/redirects.json, use:
npx https://gist.github.com/AnandChowdhary/bf1dce1400a6fc86afd1921085feff93 https://raw.githubusercontent.com/TwenteMe/data/master/redirects.json
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
const moment = require("moment"); | |
console.log("Date", moment()); |
OlderNewer