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
const Jimp = require("jimp"); | |
let data = "Dev"; | |
if (process.argv.length > 2) { | |
data = process.argv[2]; | |
} | |
var fileName = 'ic_launcher.png'; | |
var imageCaption = `[${data}]`; |
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
//Compatible with the Arduino IDE 1.0 | |
//Library version:1.1 | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
// Connection details for LCD: | |
// SDA --> A4 | |
// SCL --> A5 | |
// VCC --> 5V | |
// lcd is initialized with |
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
#!/bin/bash | |
# the 'defaults' command wants the plist file path, but without the .plist extension | |
NOEXT=$(echo "$1" | cut -f 1 -d '.') | |
# extract the current CFBundleVersion value | |
VERSION=$(defaults read $NOEXT CFBundleVersion) | |
# get the number of '.' characters in the version | |
DOTCOUNT=$(echo $VERSION | awk -F"." '{print NF-1}') |
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
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace Security | |
{ | |
public class SecurityUtils | |
{ | |
public static string ComputeChecksum(string filePath) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Xml.Serialization; | |
using System.Xml; | |
using System.Runtime.Serialization; |
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 React, { Component } from 'react' | |
export class UserList extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
users: [], | |
} | |
}; |
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
using Microsoft.Azure; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace AzureTableSample | |
{ | |
public class Person : TableEntity |
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
using System; | |
namespace AzureDemo.Models | |
{ | |
public class ServerResponse | |
{ | |
public ServerResponse() | |
{ | |
Success = true; | |
} |
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
from bs4 import BeautifulSoup | |
import requests | |
result = requests.get("http://www.chron.com/news/houston-texas/") | |
soup = BeautifulSoup(result.content, 'html.parser') | |
items = soup.find_all('a', 'hdn-analytics') | |
for link in [l for l in items if 'most_popular' in l.attrs['data-hdn-analytics']]: | |
print('<a href="{}">{}</a>'.format(link.attrs['href'], link.attrs['title'])) |
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
declare | |
@test nvarchar(500), | |
@idx int, | |
@c nchar(1) | |
set @idx = 1 | |
set @test = 'Nå er tiden for alle gode menn til å komme til unnsetning for landet sitt.' | |
while @idx < LEN(@test) | |
begin |