Skip to content

Instantly share code, notes, and snippets.

{
field: "", // prop key on the object, ie: {firstName: "John"}, your field would be "firstName"
displayName: "", // this is the label that the grid will display on the column headers,
render: function() {}, // use this function when you want a custom cell. It must return a string or React component
sort: true, // this controls whether the grid allows sorting on this cell or not, default is true, set to false to disable
width: "10%" // the default is 10%
cssClass: "" // css class that the grid will apply on the column headers
}
var charset7bit = ['@', '£', '$', '¥', 'è', 'é', 'ù', 'ì', 'ò', 'Ç', "\n", 'Ø', 'ø', "\r", 'Å', 'å', 'Δ', '_', 'Φ', 'Γ', 'Λ', 'Ω', 'Π', 'Ψ', 'Σ', 'Θ', 'Ξ', 'Æ', 'æ', 'ß', 'É', ' ', '!', '"', '#', '¤', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '¡', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'Ä', 'Ö', 'Ñ', 'Ü', '§', '¿', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'ä', 'ö', 'ñ', 'ü', 'à'];
var charset7bitext = ["\f", '^', '{', '}', '\\', '[', '~', ']', '|', '€'];
var udh_template = '<span class="udh"><span class="udh-total-length" title="UDH length">0x05</span><span class="udh-multipart-header" title="UDH header - Multipart SMS">0x00</span><span class="udh-multipart-length" title="Multipart SMS - UDH length">0x03</span><span class="udh-multipart-id"
@kashcode
kashcode / findingapirequest2.json
Last active May 3, 2016 13:52 — forked from user20161119/findingapirequest.json
ebay finding api request json
{
"jsonns.xsi": "http://www.w3.org/2001/XMLSchema-instance",
"jsonns.xs": "http://www.w3.org/2001/XMLSchema",
"jsonns.tns": "http://www.ebay.com/marketplace/search/v1/services",
"tns.findItemsByKeywordsRequest": {
"keywords": "great white shark tooth",
"categoryId": [
"15917"
],
"paginationInput": {
*~
*.pyc
*.swp
*#
.metadata
.DS_Store
*.log
__pycache__
venv
SELECT
t.*
FROM
tweets AS t
JOIN (
SELECT
tweet_id
FROM
tweets
WHERE
@kashcode
kashcode / ave.vb
Created August 5, 2017 19:08
Excel - images get from URL, resize rows by image
Sub URLPictureInsert()
'Updateby Extendoffice 20161116
Dim Pshp As Shape
On Error Resume Next
Application.ScreenUpdating = False
Set Rng = ActiveSheet.Range("E2:E640")
For Each cell In Rng
filenam = cell
ActiveSheet.Pictures.Insert(filenam).Select
Set Pshp = Selection.ShapeRange.Item(1)
@kashcode
kashcode / go_search_wher_what.go
Last active October 27, 2017 13:56
go search wher what
package main
import (
"fmt"
"os"
"path"
"path/filepath"
"time"
)
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define ProductName="EDUS Agent" ?>
<?define ProductVersion="1.0.0.0" ?>
<?define ProductCode="A24F9B47-6852-4B4B-B1D9-EF222E75F9E5"?>
<?define UpgradeCode="96224cdd-760a-468f-9bc4-9d29664a0569"?>
<?define Manufacturer="Softikom"?>
<Product Codepage="utf-8"
Id="*"
Name="$(var.ProductName)"
@kashcode
kashcode / Program.cs
Last active August 26, 2019 21:46
Put Your Arrays in a Bind
using System;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace SepOct2009
{
class Program
{
static void Main(string[] args)