I hereby claim:
- I am nivardus on github.
- I am nivardus (https://keybase.io/nivardus) on keybase.
- I have a public key whose fingerprint is E732 8AE9 8E56 34F5 79CE C95D 49CB FE0E ABCB 14E1
To claim this, I am signing this object:
fun CopyText(text) | |
if executable('wl-copy') | |
silent! call system('wl-copy', a:text) | |
return 1 | |
elseif executable('xclip') | |
silent! call system('xclip -sel clip', a:text) | |
return 1 | |
else | |
echo "No clipboard command found: wl-copy, xclip." | |
return 0 |
#!/bin/bash | |
TMP_AVI=$(mktemp /tmp/outXXXXXXXXXX.avi) | |
trap convert_to_gif INT | |
function convert_to_gif() { | |
convert -set delay 10 -layers Optimize $TMP_AVI $(date +"%Y%m%d-%H%M%S").gif | |
} | |
ffcast -s % ffmpeg -y -f x11grab -show_region 1 -framerate 15 \ |
diff --git a/examples/echoserv.cc b/examples/echoserv.cc | |
index 961feaf..43512c4 100644 | |
--- a/examples/echoserv.cc | |
+++ b/examples/echoserv.cc | |
@@ -122,7 +122,7 @@ std::string base64(const std::string& src) | |
base64_encode_ctx ctx; | |
base64_encode_init(&ctx); | |
int dstlen = BASE64_ENCODE_RAW_LENGTH(src.size()); | |
- uint8_t *dst = new uint8_t[dstlen]; | |
+ char *dst = new char[dstlen]; |
I hereby claim:
To claim this, I am signing this object:
angular.module('restfulResource', ['ngResource']) | |
.constant('defaultActions', { | |
update: {method: 'PUT', inArray: false}, | |
create: {method: 'POST'} | |
}) | |
// restfulResource uses PUT for saving existing resource (/foo/:id) and POST for creating | |
.factory('restfulResource', function($resource, defaultActions){ | |
return function(url, params, actions) { |
using System; | |
using System.Threading; | |
using MassTransit; | |
public class JobTriggerMessage | |
{ | |
public int RecipientType { get; set; } | |
public int RecipientId { get; set; } | |
public string JobName { get; set; } |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Web; | |
using Newtonsoft.Json; |
using System; | |
using System.Linq; | |
namespace PetaPoco | |
{ | |
public static class PetaPocoExtensions | |
{ | |
public static T SingleOrDefaultManyToOne<T, T1>(this Database db, Func<T, object> key, string sql, params object[] args) | |
{ | |
var relator = new Relator(); |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Grfid.Common.Logging; | |
using Grfid.NSurf.Abstract; | |
using Grfid.NSurf.Models; | |
namespace Grfid.NSurf.Transport | |
{ |